You are here: Start » AVL.NET » AVL.CreateImageRotationMap(AvlNet.ImageFormat, float, AvlNet.RotationSizeMode, AvlNet.InterpolationMethod, AvlNet.SpatialMap, AvlNet.Region)

AVL.CreateImageRotationMap(AvlNet.ImageFormat, float, AvlNet.RotationSizeMode, AvlNet.InterpolationMethod, AvlNet.SpatialMap, AvlNet.Region)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreateImageRotationMap(
	AvlNet.ImageFormat inImageFormat,
	float inAngle,
	AvlNet.RotationSizeMode inSizeMode,
	AvlNet.InterpolationMethod inInterpolationMethod,
	out AvlNet.SpatialMap outRotationMap,
	out AvlNet.Region outOutputRegion
)

Parameters

inImageFormat
Type: AvlNet.ImageFormat
inAngle
Type: System.Single
inSizeMode
Type: AvlNet.RotationSizeMode
inInterpolationMethod
Type: AvlNet.InterpolationMethod
outRotationMap
Type: AvlNet.SpatialMap
outOutputRegion
Type: AvlNet.Region

Description

The operation generates map that describes rotation mapping. Dimensions of the resulting image depends on inSizeMode. 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. Usually creating map and then using RemapImage is faster than RotateImage. outOutputRegion return region, which can be calculated by RemapImage.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

See also