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

AVL.CreateImageRotationMap

Creates a spatial map representing an image rotation.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatInformation about dimensions, depth and pixel type of the image.
inAnglefloat45.0fThe angle of rotation. Default value: 45.0f.
inSizeModeAvlNet.RotationSizeMode
inInterpolationMethodAvlNet.InterpolationMethodBilinearInterpolation method used in extraction of image pixel values. Default value: Bilinear.
outRotationMapAvlNet.SpatialMapOutput spatial map.
outOutputRegionAvlNet.RegionPixels set by the spatial map application.

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.

Function Overrides

See also