> I've got just a simple question. Is it possible to save 
> Fl_Image images (the common file formats like JPEG, PNG, BMP 
> ...)? I didn't found anything in the documentation....

Yes, it is possible. I do it all the time.
I suspect what you are really asking is "Does fltk provide wrapper
functions for saving images as JPEG, PNG..." and the answer to that is
no, it does not.

However, it is really easy to recover the image data from your Fl_Image
and just write that out yourself - both the PNG and JPEG tarballs (and
docs) contain examples of saving an array of data as an image, and it is
easy to get the image data. These two HowTo's show ways of reading back
the "raw" image data:

http://www.fltk.org/articles.php?L466 

http://www.fltk.org/articles.php?L468 


And then saving that to a file is straightforward. I recommend PNG for
starters, FWIW...

Hope that helped,
-- 
Ian





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

Reply via email to