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.
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?
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.