Simon Ouellette
|
Saving PtRaw "content" as images
|
Simon Ouellette
10/19/2009 11:14 AM
post40236
|
Saving PtRaw "content" as images
I have some code that draws to a PtRaw widget using basic Photon API drawing calls (PgDrawIRect and such), from the draw
function callback.
We would like to add a feature where we can save the content of these graphs to an image file (.png,.jpg, or pretty much
anything else). I am not using offscreen contexts.
What would be the simplest/quickest way to tweak my code to make this possible? Note that I keep an internal buffer of
my pixel values, so worst comes to worst I make a separate function that draws in the same way from this internal buffer
to an image file -- but even that, I'm not sure what would be the simplest way to do it.
Let me know if you have suggestions,
Thanks,
Simon
|
|
|