> Could you help me to fill the callback with the necessary 
> functionality to print the squares to a gif/png/jpg file 
> (whatever is easiest)?

My answer might seem an odd way to go about things, as I'm about to
refer you to an STR (a bug report).

The bug report in question:

  http://www.fltk.org/str.php?L2257 

Includes a worked example used to test the fault, that shows how to draw
widgets into an off-screen context and then capture them to a PNG file.

The report includes some helper code (write_png.c, write_png.h) to do
that actual writing to PNG, and some fltk example code showing how this
is used (offscreen-grab.cxx) so using those bits and pieces, you can
probably get enough info to sort yourself out from there.





SELEX Galileo Ltd
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