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
 Auto Rotation Default background
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

rswyman@docuxplorer.com

USA
156 Posts

Posted - Dec 19 2012 :  19:08:02  Show Profile  Reply
Good Day All,

With Tif images we use the Rotate method which works fine but the background is always black and not white as we require. We tried both methods but with no success.

1.
ImageEnMView.Background := clwhite;
ImageEnMView.Proc.Rotate(ImageEnMView.Proc.SkewDetection(), false, ierBicubic, -1);

2.
ImageEnMView.Proc.Rotate(ImageEnMView.Proc.SkewDetection(), false, ierBicubic, clwhite);

Attached is a our sample result as a jpg as tiff can not be uploaded

Insert Image: rswyman@docuxplorer.com/201212205418_AutoRotate-1.jpg" border="0">

w2m

USA
1990 Posts

Posted - Dec 20 2012 :  09:32:19  Show Profile  Reply
When I load a TIFF image into ImageEnMView here I do not get a black background. I do not get a black background after rotation. I can not duplicate what you are seeing.
Your attached photo is not visible in the forum.

If a scanned image is loaded where part of the image itself is black then black does appear in the thumbnail. The black part of the image is not the background... it is part of the scanned image as shown:

79.83 KB
Here the area surrounding the paper is black and the background is white. The only way you can fix this is by filling the black with white.

When

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

rswyman@docuxplorer.com

USA
156 Posts

Posted - Dec 20 2012 :  10:09:48  Show Profile  Reply
Hi William,

Thanks for your reply. We determined that the second param needed to be true so AntialiasMode was used. Once changed we where able to change the background color to white.

You testing program look very interesting is this available.

Thanks
Ron
Go to Top of Page

w2m

USA
1990 Posts

Posted - Dec 20 2012 :  13:21:42  Show Profile  Reply
Hi Ron,

Yes the project is included as part of my EBook. We are hopeing to do a third edition sometime in January.

William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: