Skip to main content

Thread: [wxWidgets] Loading Icon from Char Array


i'm trying use const unsigned char[] data .png image icon:

php code:
static const unsigned char tux_png[] = {
    
0x890x500x4e0x470x0d0x0a0x1a0x0a0x000x000x000x0d
    
0x490x480x440x520x000x000x010x900x000x000x010xdf
    
0x080x060x000x000x000x7e0xb10x8e0x750x000x000xa0
    
0xdb0x490x440x410x540x780x5e0xec0xdd0x6b0x4c0x55
    
0xd90x1d0xc60xe10x970x9b0x470xf00x5e0x8c0x200x58
    
0x510x900x860x200x120x2d0xa30x1d0x7b0xb50xde0xb0
    
0x540xc70x680x130x750x540xda0x5a0x520x3e0xd40xcc
    
0x680x890x710xd00x4c0xa30xc90x8c0x890x750x920x2a
    
0x990x890xf30x610x8c0x460xc30x280xad0x970x8e0xd7
    
0xa90xb50xca0xb40xd60x8c0x530x990x580x650x940x18
    
0x710x000x150x51,
... 
but can't figure out how use wxicon. have read the docs still have not figured out. tried:

php code:
wxicon icon(tux_png); 
and

php code:
wxicon icon(tux_png400479); 
and other things well. there way convert data const char[] use wxicon or wxbitmap?

have tried making const char[], opposed const unsigned char[]?


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] [wxWidgets] Loading Icon from Char Array


Ubuntu

Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support