On 07.02.2012, at 10:30, Rainer Rinke wrote: >> For simplicity reason I like to carry the jpeg image inside the binary. >> So I have a data pointer and size of a copy of jpeg file represented >> inside the program. >> >> Is there a way to utilize the FLTK functionality with Fl_JPEG_Image? >> Fl_JPEG_Image typically wants a filename. >> Is there a way to tell Fl_JPEG_Image to point it to internal memory? >> >> >> > > Had the same problem (some time before FLTK 1.3 occurred). > So I wrote (cut copy paste) my own class (for FLTK 1.1.10), that did the job. > It is probably not complete coded as it is in FLTK 1.3 but perhaps it might > help. > Rainer
Fluid 1.3 can load any binary file an store it inside your executable, assigning it a variable name. Then, use the Fl_Jpeg_Image constructor that takes a void* (the address of your binary data) and a string (a name by which you can reference the image later). Tadaa. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

