On May 28, 2007, at 8:19 PM, Gerald Ayme wrote: > Now, i've PNG files in memory. So, how can i display them with > FLTK ? I > can't use the load functions of the library, as they load files > from disk, > and don't seem to work with buffers.
There is no function at this point in FLTK1 to decode PNGs from RAM, only from a file descriptor. So you have two ways out: you could look at the Fl_PNG_Image code and rewrite it to use RAM, or you could push the raw image data through a pipe and read that as a file - however pipes work slightly different on various platforms. ---- http://robowerk.com/ _______________________________________________ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk