How to calculate the new point when i zoomed the canvas using SetUserScale method?
How to calculate the new point when i zoomed the canvas using SetUserScale method?
How to calculate the new point when i zoomed the canvas using SetUserScale method? I want the point got by mouse to be changed with zooming
- Attachments
-
- 未命名-1.png (52.53 KiB) Viewed 520 times
Re: How to calculate the new point when i zoomed the canvas using SetUserScale method?
Assuming we are talking about wxDC and converting mouse coordinates to wxDC ones: Did you try the appropriate functions from wxDC, such as wxDC::DeviceToLogicalX/Y()?