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
 Best way to Rotate 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
AndyColmes Posted - May 04 2012 : 18:14:20
What is the best way to rotate an image? I have to rotate an image using the pre-defined angles like 90, 180, 270. But sometimes, the image gets cropped off due to insufficient canvas size.

Thanks.
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - May 06 2012 : 14:21:53
Maybe the resulting image doesn't fit in the TImageEnView sizes. Anyway it isn't cropped, just you don't see it completely.
Call ImageEnView.Fit() or adjust Zoom manually to see the whole image.
AndyColmes Posted - May 06 2012 : 10:37:49
I do have an image in a TImageEnView. But sometimes when the canvas size is not large enough, rotation can crop off edges of the image. Is there a way to avoid that or maybe a way to automatically resize the canvas (I guess the bitmap height and width) to fit the new rotated image?

Thanks.
xequte Posted - May 04 2012 : 20:50:08
Hi

Do you have an image in an ImageEnView?

You can use:

ImageEnView1.Proc.Rotate(90, True);
ImageEnView1.Update;


Or if you are happy to work with directly with the file you can use the lossless functions:

http://www.imageen.com/help/Jpeg%20lossless%20transformations%20functions.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com