Table of Contents

Method GetRotatedImage

Namespace
LMKit.Media.Image
Assembly
LM-Kit.NET.dll

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 int

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 rotation is not 90, 180, or 270.

InvalidOperationException

Thrown if the image rotation operation fails.