T O P I C R E V I E W |
brm121966 |
Posted - Aug 06 2022 : 14:16:12 Hello. Spent some time on the ImageEnView.select method to calculate the center of an image with different zoom values. But I could not set the image selection area to the center. Please, tell me how to correctly calculate the center of the image to select an area of 100 by 100 pixels using ImageEnView.select and zoom 50...120. Thank you.
Rudolf |
7 L A T E S T R E P L I E S (Newest First) |
brm121966 |
Posted - Aug 21 2022 : 14:11:17 Thanks.
Rudolf |
xequte |
Posted - Aug 17 2022 : 23:16:44 Hi Rudolf
As per the Select() documentation, x2 and y2 are exclusive values (those pixels are not included in the selection).
Whereas for SelX2 and SelY2 the values are inclusive.
I will add a better description to the documentation to make it clearer.
Nigel Xequte Software www.imageen.com
|
brm121966 |
Posted - Aug 10 2022 : 06:53:52 Hi Nigel. I'm trying to programmatically change the size of the frame of the selected area. Here is the code
...ButtonClick.... begin with ImageEnView do begin SelectionBase := iesbBitmap; Select(SelX1,SelY1,SelX2,SelY2-1); end; end; Checked with different Zoom 80 - 120.
The selected area frame changes normally using the mouse.
Thank you. Rudolf |
xequte |
Posted - Aug 09 2022 : 23:48:39 Hi Rudolf
You resize the selection by using the mouse?
What is ImageEnView1.Zoom?
Nigel Xequte Software www.imageen.com
|
brm121966 |
Posted - Aug 09 2022 : 21:34:33 Hi Nigel. I'm sorry to trouble you. You can't just resize the selection. I decrease the size of the Y2 square selection by 1 pixel, and X2 is recalculated by 2.
begin with ImageEnView do begin SelectionBase := iesbBitmap; Select(SelX1,SelY1,SelX2,SelY2-1); end; end;
Am I doing it wrong?
Thank you.
Thank you.
Rudolf |
brm121966 |
Posted - Aug 08 2022 : 22:14:48 Hi Nigel. Thank you. It's very simple. Please tell me how to select a square with rounded edges. Thank you.
Rudolf |
xequte |
Posted - Aug 07 2022 : 18:24:41 Hi Rudolf
It should be easy if you set the SelectionBase to the image:
https://www.imageen.com/help/TImageEnView.SelectionBase.html
Nigel Xequte Software www.imageen.com
|