Hi all,
I'm new to this software and the macros, so sorry if the question seems easy.
I want to make a macro that draws a circle at the mouse position in an image.
The only problem I have is to get the pixel coordinates where the mouse is.
At the bottom of the zen application, these values are indicated so there must be a way to get them in a macro no?
Can someone help me please
Get pixel coordinates from an image
-
- Posts: 1
- Joined: Thu Nov 12, 2020 10:59 am
-
- Posts: 180
- Joined: Wed May 20, 2020 10:10 am
Re: Get pixel coordinates from an image
Hello Raphael Schneider,
I think we have two problems here:
I want to make a macro that draws a circle at the mouse position in an image.
You will need something like 'OnClick' which is not suppoerted in a macro.
The only problem I have is to get the pixel coordinates where the mouse is.
Sorry, we do not support that either.
But, maybe you can achieve your goal when you think in a different way:
E.g. you can set markers (don't forget the 'keep' option) in the image.
you can read all the markers with image.Graphics, store the coordinates, delete them and put circles at the positions.
... just an idea ...
I think we have two problems here:
I want to make a macro that draws a circle at the mouse position in an image.
You will need something like 'OnClick' which is not suppoerted in a macro.
The only problem I have is to get the pixel coordinates where the mouse is.
Sorry, we do not support that either.
But, maybe you can achieve your goal when you think in a different way:
E.g. you can set markers (don't forget the 'keep' option) in the image.
you can read all the markers with image.Graphics, store the coordinates, delete them and put circles at the positions.
... just an idea ...