Laurent Veilleux wrote:
> Ok I have found i have to use
> 
>     int xOriginDevice = m_drawer2D->WorldToDeviceX   
> (0)*m_drawer2D->GetUppX();
>     int yOriginDevice = m_drawer2D->WorldToDeviceY  (0)*m_drawer2D->GetUppY();

So what canvas are you using? a2dCanvas or a2dCanvasSim.

What you do here above is calculate where the origin is in device coordinates,
and then calculate back to world coordinates assuming translation is zero.
Upp is number of world units per pixel, so the outcome can not be pixels again.

Normally this is true:
     m_scalex = 1/m_xpp;

Anyway i though i try/add it in the zoom sample, but it is not working, maybe 
because of not using the right canvas.

Klaas

-- 
Unclassified

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Wxart2d-users_dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to