Christopher Barker wrote:
>> Is there a way to export the complete canvas'
>> contents, using a 1:1 scale or (if it makes more sense) specifying the
>> size of the resulting image?
>
> not directly, no. But you could call ZoomToBB() first, and then dump
> that. It would show the user what was happening on screen, though.
>
> It should be possible to just draw to the offscreen buffer, and no have
> the screen updated, but I"d have to poke into the code to see how to do
> that. You may be able to .Hide() the window, then re-draw, then dump the
> bitmap, then Show() again, but that would make the Window disappear and
> re-appear again, which may not be what you want.
>
> If you dig into the code, you could probably find a way to intercept the
> blit to screen after a re-draw (maybe a flag in the EVT_PAINT handler)
Thanks for your quick answer :)
Yesterady I was tinkering with the idea of doing something like:
1) Rescale the canvas to 1:1
c.Scale = 1
c.SetToNewScale(DrawFlag=False)
2) Call _DrawObjects() to draw the canvas onto a memoryDC
3) Dump the memoryDC to a file
I'm still trying to figure out the details, but could this approach work?
_______________________________________________
FloatCanvas mailing list
[email protected]
http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas