SetDeviceOrigin wxGCDC
Stefan Csomor
csomor at advancedconcepts.ch
Thu May 22 04:40:27 PDT 2008
Hi
On 22.05.08 12:26, "Declan McMullen" <declan.mcmullen at gmail.com> wrote:
>
> Hey guys,
> Is there any technique I can use to set the DeviceOrigin on a
> wxGraphicsContext?
>
> I notice that the GraphicsContext API doesnt contain the method.
> I use the following code:
>
> wxBufferedPaintDC pdc(this);
> wxGCDC gdc(pdc);
> wxGraphicsContext* dc = gdc.GetGraphicsContext();
>
> I can set the origin using gdc before I make dc and it propogates down but I
> just wanted to verify this was a safe
> way to do it ?
you can use Translate or add a transformation matrix, but this is always in
user coordinates, why exactly would you have to do this in device
coordinates ?
Best,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080522/29633601/attachment.htm
More information about the wx-users
mailing list