On 13.05.2011, at 15:07, Domingo Alvarez Duarte wrote: > Any chance to have help on this topic ?
Yes, it works. Fluid provides a new item in the Code section named "Binary Data" which you can use to generate an array of bytes inside your application. Then use that variable name plus some random image name to call the constructor. This is what the docs say: The easiest way to get a jpeg into you application is by Fl_JPEG_Image::Fl_JPEG_Image ( const char * name, const unsigned char * data ) The constructor loads the JPEG image from memory. Construct an image from a block of memory inside the application. Fluid offers "binary Data" chunks as a great way to add image data into the C++ source code. name_png can be NULL. If a name is given, the image is added to the list of shared images (see: Fl_Shared_Image) and will be available by that name. The inherited destructor frees all memory and server resources that are used by the image. There is no error function in this class. If the image has loaded correctly, w(), h(), and d() should return values greater zero. Parameters: name A unique name or NULL data A pointer to the memory location of the JPEG image _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

