tags:

views:

110

answers:

2

Hi everyone

I'm developing a mapping software. Coordinates are plotted with respect to some point (origin) inside the canvas, not the default origin, so the canvas is divided into four quadrants. The mouse hovers over the canvas and the labels are updated to show the current mouse position inside the canvas of course with appropiate signs of the coordinates. So basically the trick is to change the origin and assign it to some point in the canvas

Can anyone please help me how to do this. Any suggestion would be much appreciated.

Cheers!

+1  A: 

Assuming you're talking about the Win32 API, SetViewportOrgEx is what you're looking for.

RichieHindle
A: 

Thanks Richie Hindle

I think that's pretty much what I wanted, but I been wondering how does it work in VB.Net because my application is using VB.Net

Thank you again!

related questions