Michel Schmid wrote:
> Because I want to statically link the picture into my code, and over the
> Fl_RGB_Image this seems to be done. But over Fl_BMP_Image it is dinamically
> loaded on runtime.... Or ist this wrong?
The easiest way to achieve this might be using an XPM image. Have a look
at the Fl_Pixmap class and the pixmap.cxx demo in the FLTK examples.
Basically an XPM file just contains a C array of strings which represent
the image data and simply gets included into your source file.
This looks something like this:
static const char *xpmimage[] = {
<ASCII art representation of the image data>
};
and is then being used in FLTK with:
Fl_Pixmap *pixmap = new Fl_Pixmap(xpmimage);
XPM files are easily created with the Gimp or most other image editors.
Freddy
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk