Coordinates

M

Mark Raschi

Hello all,

Does anyone know of the best way to translate world coordinates to client
coordinates. For example when i record the mouseposition it is in world
coordinates. What if i want it in client coordinates.

Thanks,

Mark
 
J

Jay B. Harlow [MVP - Outlook]

Mark,
There are a number of methods you need, depending on what coordinate space
you are in and which one you are going to.

Control.PointToClient
Control.PointToScreen

Control.RectangleToClient
Control.RectangleToScreen

Graphics.TransformPoints
Matrix.TransformPoints

Hope this helps
Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top