Method GetRotatedImage
GetRotatedImage(int)
Rotates the image by the specified angle. Only 90, 180 or 270 degrees clockwise are supported.
public ImageBuffer GetRotatedImage(int rotation)
Parameters
rotation
intThe rotation angle in degrees (clockwise).
Must be one of: 90, 180, 270.
Returns
- ImageBuffer
A new ImageBuffer containing the rotated image.
Exceptions
- ArgumentOutOfRangeException
Thrown if
rotation
is not 90, 180, or 270.- InvalidOperationException
Thrown if the image rotation operation fails.