imm wrote: > That was a long (as in loooong) thread about this, and several folk > (but mainly me, to be honest) posted examples using Fl_Offscreen and > similar - an example capturing the contents of a Fl_Group derived > widget was here: > > http://www.fltk.org/newsgroups.php?gfltk.general+v:27400 > > > Another, grabbing random drawing to an offscreen in a scroll was here: > > http://www.fltk.org/newsgroups.php?gfltk.general+v:27381 (that's > Greg's cleaned up version of my original buggy posting...) > > I'm not sure that you need the Fl_RGB_Image at all - once you read > back the RGB data from the offscreen, that should be basically it, I > think? You can just dump that data to libpng and you are good to go. > > Also, I'm fairly sure the offscreen is RGB rather than RGBA, so your > dimensions may be wrong? > > Other than that, I'm not sure what to suggest - I'm on a laptop, far > from any useful tools rights now so can't try your example out > > .
Thanks for the links. I remember that there was a long discussion on this, so I tried to search the "Forum" using the search facility at fltk.org. It took awhile to shift through the posts. Anyone know of a site that mirrors the posts in the Forum/Newsgroup that provides further searching options (i.e. sort date descending, etc.)? With respects to the fl_copy_offscreen(), is that only needed if the offscreen is to be shown? If so, I don't need to show the offscreen, just get the RGB data so I can dump it to a PNG/PPM file. I'm checking out those links now to determine if they apply to my needs or if I can further understand the offscreen capability and create what I need. If I come up with something that: "Dumps the contents of a Fl_Group to Fl_RGB_Image" then perhaps I will make an HOWTO article on fltk.org. Cheers, Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

