You are here: Start » AVL.NET » AVL.RotateImage(AvlNet.Image, float, AvlNet.RotationSizeMode, AvlNet.InterpolationMethod, bool, AvlNet.Image)

AVL.RotateImage(AvlNet.Image, float, AvlNet.RotationSizeMode, AvlNet.InterpolationMethod, bool, AvlNet.Image)

Rotates an image clockwise.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RotateImage(
	AvlNet.Image inImage,
	float inAngle,
	AvlNet.RotationSizeMode inSizeMode,
	AvlNet.InterpolationMethod inInterpolationMethod,
	bool inInverse,
	out AvlNet.Image outImage
)

Parameters

inImage
Type: AvlNet.Image
Input image
inAngle
Type: System.Single
Rotation angle (clockwise)
inSizeMode
Type: AvlNet.RotationSizeMode
inInterpolationMethod
Type: AvlNet.InterpolationMethod
inInverse
Type: System.Boolean
'True' changes rotation to counter-clockwise
outImage
Type: AvlNet.Image
Output image

Description

The operation rotates the inImage around its center. Dimensions of the resulting image depends on inSizeMode parameter. In 'Fit' mode size is extended to fit the rotated image. In 'Preserve' mode size of source image is left unchanged and part of rotated image may be lost. Two modes of pixel interpolation are available, the bilinear filtering being more precise and computationally expensive.

Examples

RotateImage performed on the sample image in Fit mode with inAngle = 20.0.

Errors

Error type Description
DomainError Image dimensions too big in RotateImage.

See also