Table of Contents

Method Rotate

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

Rotate(int)

Rotates the image by the specified angle. Only 90, 180 or 270 degrees clockwise are supported.

public ImageBuffer Rotate(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.