On 19 Mar 2012, at 13:34, Edzard Egberts wrote:

> This is a FAQ, but I missed to keep track of this.
> 
> I need to save a plotted graph as a picture, e.g. png, bmp, jpg. I 
> think, I should use Fl_Offscreen and something like 
> Fl_Offscreen::Save_Png() is what I need.

Yes - we don't have that...

What I did was just read back the data from the offscreen, repack it as RGB, 
then write it to a PNG using the stock PNG API directly.

Getting the data out was done as per this howto:

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

And writing the PNG is just as per the notes in the PNG docs anyway.





_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to