Method Rotate
Rotate(int)
Rotates the image by the specified angle. Only 90, 180 or 270 degrees clockwise are supported.
public ImageBuffer Rotate(int rotation)Parameters
- rotationint
- The 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 - rotationis not 90, 180, or 270.
- InvalidOperationException
- Thrown if the image rotation operation fails. 
- ObjectDisposedException
- Thrown if this instance has been disposed.