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
 Auto Rotation Default background

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
rswyman@docuxplorer.com Posted - Dec 19 2012 : 19:08:02
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">
3   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Dec 20 2012 : 13:21:42
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
rswyman@docuxplorer.com Posted - Dec 20 2012 : 10:09:48
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
w2m Posted - Dec 20 2012 : 09:32:19
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