Author |
Topic |
|
Deeron
67 Posts |
Posted - Jun 21 2020 : 12:04:51
|
Hello,
IEVolution .NET 8.0.0.0 (WinForms, C#)
My basic problem:
I want to cut an image from the source image using only coordinates (no mouse interaction, no mouse selection).
IEVolution.Image.Crop(x1, y1, x2, y2); It doesn't seem to work.
Did any settings escape my attention? What else should I do to make this work?
An interesting thing: Image rotation works. e.g.: IEVolution.Image.Rotate (45, false);
Deeron
|
|
xequte
38613 Posts |
Posted - Jun 21 2020 : 16:19:07
|
Hi Deeron
So, the image does not change at all? What is the size of the image and your values for x1, y1, x2, y2?
Nigel Xequte Software www.imageen.com
|
|
|
Deeron
67 Posts |
Posted - Jun 21 2020 : 18:39:08
|
Hi Nigel,
Yes, the image does not change at all.
Size of the source image is 1599 x 1010. The Crop function parameters are 1329, 518, 118, 139 |
|
|
xequte
38613 Posts |
Posted - Jun 22 2020 : 01:41:00
|
Hi Deeron
Please note the parameters specify the rect to keep, so the x2 and y2 values must be > than the x1, y1, i.e
Crop( 1329, 518, 1447, 657 )
Nigel Xequte Software www.imageen.com
|
|
|
Deeron
67 Posts |
Posted - Jun 22 2020 : 11:35:55
|
Hi Nigel,
Thanks for the help, so the crop function works.
Regards, Deeron |
|
|
|
Topic |
|
|
|