Icons in main menu

Juraj 2012-01-30 11:08:48 Link
Hi,
I built webradio on ARM platform. Device works perfect.
Now I am trying some change in code. I would like add some new items to
main menu or replace original. But I don't understand how works menu icons.
Menu icons are defined in menu.h like two-dimensional array. In menu.c are
are initialized in hexa.
Could someone please explain me this hexa representation. How can I get
this from my own icon image. What does it mean for example:
img_station[3][4*32]?
Regards
Juraj

Andreas Watterott 2012-01-30 12:22:23 Link
One icon consists of 3 monochrome images with 32 x 32 pixel. There are 3
images because of the animation.
4 bytes (32 bit) are one line of the image:

const unsigned char img_station[3][4*32] =
{
  { 0x30,0x00,0x00,0x00, //1st line of 32 bit
    0x30,0x00,0x00,0x00, //2nd line of 32 bit
    ...

Rgds
Andreas

Juraj 2012-01-31 21:52:09 Link
Thanks Andreas for your explanation.
I have tried and I got it.

Reply

Name
eMail (not visible)
Subject (no text only in upper case; no HELP, URGENT...)
Text
HTML tags are not supported and links are generated automatically if they start with http or ftp.
Please submit long source code or log files as attachment (only registered users).
Please enter the number 9097