> 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?
What version of fltk are you using? If fltk-1.3 (which is what you should be using for new work, since it is the current stable release) then yes, you can do that, using the method: 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. See the docs for more details. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

