2010-03-03 01:44:17 +01:00
|
|
|
#include "libresrc.h"
|
|
|
|
|
|
|
|
wxBitmap libresrc_getimage(const unsigned char *buff, size_t size) {
|
|
|
|
wxMemoryInputStream mem(buff, size);
|
2012-04-03 22:40:24 +02:00
|
|
|
return wxBitmap(wxImage(mem));
|
|
|
|
}
|
|
|
|
|
|
|
|
wxIcon libresrc_geticon(const unsigned char *buff, size_t size) {
|
|
|
|
wxMemoryInputStream mem(buff, size);
|
|
|
|
wxIcon icon;
|
|
|
|
icon.CopyFromBitmap(wxBitmap(wxImage(mem)));
|
|
|
|
return icon;
|
2010-03-03 01:44:17 +01:00
|
|
|
}
|
|
|
|
|
2010-03-06 04:55:27 +01:00
|
|
|
const std::string libresrc_getconfig(const unsigned char *config, size_t size) {
|
2012-06-23 03:06:38 +02:00
|
|
|
return std::string(reinterpret_cast<const char *>(config), size);
|
2010-03-03 01:44:17 +01:00
|
|
|
}
|