Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change origin? Win32?

is it possible to move the origin on the display from top left to the centre of the display?

Why I want to do this? So that, I can plot points such as:

(-21,-25),(22,-25),(21,25),(-21,25)

As you can see that some of these are negative and hence not visible on the display. Any suggestions?

like image 891
user1788175 Avatar asked Oct 14 '25 10:10

user1788175


1 Answers

Use the GDI function SetViewportOrgEx(). Note that in GDI, the coordinates are not relative to the screen; they're relative to the device context, which typically corresponds to your window's client area.

like image 121
Seva Alekseyev Avatar answered Oct 16 '25 23:10

Seva Alekseyev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!