Hi All,

Previously when using the image as backdrop feature I have assigned
the image in my FLUID UI design. My problem now is that I need to
create an array of buttons on the fly, and i need to assign an image
overlay in my own code.
How can i do this, or rather what is the syntax etc. I see that in
the file from the example and the fluid generated code that the image
is stored as an array of chars or IIRC ints. Now how on earth is the
image converted into this information? The example in examples folder
just uses a gradient, which at a push could have been typed in manually
i suppose, but what about more complex images? Is there a function to
generate this? Then i will just need to refer to the array or type
created and assign it like in the fluid file...?

In the Fluid source code view i see this for a button with img backgd:

#include <FL/Fl_Image.H>
static unsigned char idata_pill[] =
{ /* ... 21080 bytes of binary data... */ };
static Fl_RGB_Image image_pill(idata_pill, 85, 62, 4, 0);
etc

In the generated code from fluid i get an excerpt like this:

#include <FL/Fl_Image.H>

static unsigned char idata_pill[] =
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,//more numbers and more..

What happens when i click 'write code' in Fluid to generate the array
of data for the image? That is what i need to recreate with hand code
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to