> Just to be sure: Is it not possible to link BMPs, PNGs, RGBs > on linking-time?
You can, it's just more work for you, as fltk does not support it directly. What I have done in the past is to make a little tool that simply appended the image binary data onto the end of the executable binary, and finished off with a small "index" table at the end that held the size of the app, size of the image files, and where each image began. Then at runtime the app read its own binary back and extracted the images into RAM, then I used libpng to open the images from RAM and proceeded from there. It is not worth the hassle - really. If you really want a number of images, better just put them in a sub-folder and load them at runtime using the fltk image API's. If you are dead-set on merging them into the application binary, then XPM is the path of least resistance. Basically, it serialises the image data as C array definitions, that can be easily compiled into the code. Be aware that some compilers will choke on large images though, as they have internal limits on how big an array is allowed to be. XPM was really meant for small images and icons and the like, not for the large images we use these days. It still works, but... > Is it the only possibility to do static linking with XPM? > Then I have to use XPM... See above. > Second question: Does XPM, respectively FLTK support transparency? XPM format does, although I think it is more of a clip region transparency, I don't think it has alpha transparency. There's lots of docs on the web about XPM, so google will find you something. Version 3.something is current IIRC. As to whether fltk supports transparency, that is more of a "that depends" thing. Which version of fltk, and in what way are you using the image? What is it you are actually trying to do? If you tell us, maybe someone here will have a way to get the results you need that is simpler? SELEX Sensors and Airborne Systems Limited 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

