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)

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
inAngle
Type: System.Single
inSizeMode
Type: AvlNet.RotationSizeMode
inInterpolationMethod
Type: AvlNet.InterpolationMethod
inInverse
Type: System.Boolean
outImage
Type: AvlNet.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.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

Error type Description
DomainError Image dimensions too big in RotateImage.

See also