ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IEvolution: Crop function doesn't work
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Deeron

67 Posts

Posted - Jun 21 2020 :  12:04:51  Show Profile  Reply
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

38198 Posts

Posted - Jun 21 2020 :  16:19:07  Show Profile  Reply
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
Go to Top of Page

Deeron

67 Posts

Posted - Jun 21 2020 :  18:39:08  Show Profile  Reply
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
Go to Top of Page

xequte

38198 Posts

Posted - Jun 22 2020 :  01:41:00  Show Profile  Reply
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
Go to Top of Page

Deeron

67 Posts

Posted - Jun 22 2020 :  11:35:55  Show Profile  Reply
Hi Nigel,

Thanks for the help,
so the crop function works.

Regards,
Deeron
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: