If you want to embed one of the other compressed image formats as raw binary info, you'd I think have to 'do that yourself'. eg. create an external tool that creates a c++ file with all the hex codes broken out into compiler-parsable hex, and do what the xpm files do; assign it all into a big static unsigned char[] array. If it's big, make it its own .o file so you can link it in.
To get the image out of the array and on to the screen, you'd have to read up on the image library in question (png, jpeg, etc) to convert the compressed data directly out of memory into uncompressed data in memory. Not sure which image libs support loading images from ram. Typically one is working with very small images, like icons, when embedding them into executables. And for that, typically xpm is sufficient. Otherwise it's best to 'package' them all into files that are released with your executable, and do the necessary tricks to determine the directory the executable was invoked from, and fish out the images that way. I think there was a thread on this here a few months ago, that spanned the gamut of parsing argv[0], dealing with how to 'package' applications with ancillary data, etc etc. My name should be in that thread. Afraid I can't remember the subject or OP.. it was a long thread, that much I remember ;) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

