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
 AutoCrop
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jeffp

USA
58 Posts

Posted - Dec 04 2024 :  11:02:33  Show Profile  Reply
I recently replaced my old image editor with ImageEn. Very happy with ImageEn, but there are a few features I'm still struggling with. One is AutoCrop.

I'm using this call: TImageEnView.Proc.AutoCrop2

But I'm not getting very good results. In the attached, zip file I have two before and two after auto crop files. The after auto crop files are what was produced with my old image editor's auto crop feature.

Is there something else I can use in ImageEn that gets me closer to those?



attach/jeffp/20241241120_AutoCrop.zip
2645.68 KB

jp

xequte

38683 Posts

Posted - Dec 04 2024 :  19:45:40  Show Profile  Reply
Hi Jeff

You should not use AutoCrop2(). That is only for removal of a black border on white documents:

https://www.imageen.com/help/TImageEnProc.AutoCrop2.html

You should be using AutoCrop().

Test it out using the demo:

\Demos\ImageEditing\EveryMethod\EveryMethod.dpr

It worked well with your HRM form.
The business card has two borders, so requires two passes. The "white" is easily removed. The gray around the card is harder because there are a lor of different colors within it so the tolerance needs to be adjusted.

The current beta allows you to specify clNone as the remove color and it will detect the average color from the border. You can email me for that if you like.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

jeffp

USA
58 Posts

Posted - Dec 05 2024 :  15:36:16  Show Profile  Reply
The worked. Thanks.

jp
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: