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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How can I auto crop an image?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
gajendra Posted - Mar 08 2012 : 10:27:51
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.

1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Mar 08 2012 : 10:54:34
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.