> protected:
> void draw()
> {
> Fl_Double_Windwo::draw();
> if (unsigned char* pImage= fl_read_image(0, 0, 0, w(), h(), 0))
> {
> write_png("/home/ed/temp/image.png", pImage, w(), h(), 3);
> delete[] pImage;
> }
> }
> };
>
> When you use this window-class, it will copy every draw to "image.png".
Yeah - I'd strongly advocate putting a control flag around that so it only
saves one screenshot, when you actually want it!
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