[Solved] Calculate pixel coordinates within vector drawing
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
[Solved] Calculate pixel coordinates within vector drawing
I am using TranslateCoordinates and ScaleCoordinates to draw a map as large as possible within a windows frame. But I need to save the used pixel coordinates for doing a simple mouse hover function. Of course I can do the inverse calculations but is there a more simple way to get the pixel coordinates from the vector coordinate system?
Last edited by Michael Vogel on Sun Dec 20, 2020 10:10 pm, edited 1 time in total.
Re: Calculate pixel coordinates within vector drawing
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: Calculate pixel coordinates within vector drawing
Hi Michael, ... I'm not sure if this is what you want, but maybe you can use custom drawing.
A.f.a.i.k, you will get an interrupt call for each drawn pixel.
Maybe you can store the Pixel coordination to a Buffer (Matrix, Dim Array,...) to compare to your mouse coordination later.
(I've never worked with custom drawing, so I'm not sure if this will be a working solution.)
Greetings from beautiful Eifel and happy Holidays to all of you,
Albert.
Gesendet von meinem LYA-L29 mit Tapatalk
A.f.a.i.k, you will get an interrupt call for each drawn pixel.
Maybe you can store the Pixel coordination to a Buffer (Matrix, Dim Array,...) to compare to your mouse coordination later.
(I've never worked with custom drawing, so I'm not sure if this will be a working solution.)
Greetings from beautiful Eifel and happy Holidays to all of you,
Albert.
Gesendet von meinem LYA-L29 mit Tapatalk
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
- Michael Vogel
- Addict
- Posts: 2797
- Joined: Thu Feb 09, 2006 11:27 pm
- Contact:
Re: Calculate pixel coordinates within vector drawing
Hey thanks, you're right - thanks for these hints...