Coordinates

  • Thread starter Thread starter Mark Raschi
  • Start date Start date
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
 
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
 
Back
Top