> > I have binary image blobs stored in a database and want to interpret > > them with Fl_Shared_Image, but this class expects to read from a file. > > As a quick hack currently I write the blob to a temporary file and > > I've had similar problem with png files stored in my resource files. > > I posted here a full & working listing here, two days ago. > Title is: "Decoding png already in memory" > Message-ID: <[EMAIL PROTECTED]>
thanks, and thankyou Ian MacArthur for pointing out jseb's thread. I have integrated the class into my program with no problems. Ideally I would prefer a solution for any image type, but converting everything to png's is sufficient. jseb, I'm curious how you figured out how to work with the libpng I/O callbacks. I have looked at the documentation on the libpng site before (http://www.libpng.org/pub/png/libpng-1.2.5-manual.html#section-5) and knew I had to use the png_set_read_fn() but wasn't clear how the function pointer was meant to manipulate png_structp. So it was good to read your code to see what it meant. Did you rely on this documentation or do you have another resource? thanks again, Richard _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

