> Note that the usual place to create the offscreen > is in a draw method, so the gc will always be valid > in that case. > > Not sure what to do in your example though.
Indeed, I'm actually using fltk for generating server side images (jpeg, bmp, png) for a backend. FLTK is really easy to use, and fits the bill perfectly. I'm using it on the client side for similar uses, so right now it is easier for me to run the server side with a virtual X framebuffer session (to provide the gc), then e.g. switch to gd. But I hope there's a way around it. I suspect getting rid of the X framebuffer requirements is going to be a problem, but I still hope. > How about cheating? Create a 1x1 window at > some x,y that is outside the visible and base > the gc on that? That may work. I'd also need to figure out how to make that single window not appear on task bars etc. Does anyone know how to to that for a top-level window? (IIRC, FLTK requires a non-tool top level window to be the parent of a tool one) _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

