You are here: Start » AVL.NET » Function Reference » Image » Image Spatial Transforms » AVL.RotateImage

AVL.RotateImage

Rotates an image clockwise.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inAnglefloat45.0fRotation angle (clockwise). Default value: 45.0f.
inSizeModeAvlNet.RotationSizeMode
inInterpolationMethodAvlNet.InterpolationMethodBilinearDefault value: Bilinear.
inInverseboolFalse'True' changes rotation to counter-clockwise. Default value: False.
outImageAvlNet.ImageOutput image.
outOutputAlignmentAvlNet.CoordinateSystem2DAlignment of the 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.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

List of possible exceptions:

Error type Description
DomainError Image dimensions too big in RotateImage.

Function Overrides

See also