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
 How can I auto crop an image?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gajendra

16 Posts

Posted - Mar 08 2012 :  10:27:51  Show Profile  Reply
I have scanned a photo using a flatbed scanner. The image of course is a huge image which includes the photo plus all the scanning area (white) of the scanner. How can I auto crop the image just to have the photo for my final image. Is there some coding in C++ for this? Thanks.

fab

1310 Posts

Posted - Mar 08 2012 :  10:54:34  Show Profile  Reply
You can leave the scanner to do it (if supported), setting:

ImageEnView1.IO.TWainParams.AutoBorderDetection := true;
ImageEnView1.IO.Acquire();

Otherwise you could assign this task to ImageEn (after acquired the image). You can try:

ImageEnView1.Proc.AutoCrop();

or

ImageEnView1.proc.AutoCrop2();

AutoCrop and AutoCrop2 have several options. You can set them to adapt to your images background.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: