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 |