You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms Maps » FIL.CreateImageRotationMap
Creates a spatial map representing an image rotation.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void CreateImageRotationMap ( FilNet.ImageFormat inImageFormat, float inAngle, FilNet.RotationSizeMode inSizeMode, FilNet.InterpolationMethod inInterpolationMethod, FilNet.SpatialMap outRotationMap, NullableRef<FilNet.Region> outOutputRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImageFormat | FilNet.ImageFormat | Information about dimensions, depth and pixel type of the image. | ||
![]() | inAngle | float | 45.0f | The angle of rotation. Default value: 45.0f. | |
![]() | inSizeMode | FilNet.RotationSizeMode | |||
![]() | inInterpolationMethod | FilNet.InterpolationMethod | Bilinear | Interpolation method used in extraction of image pixel values. Default value: Bilinear. | |
![]() | outRotationMap | FilNet.SpatialMap | Output spatial map. | ||
![]() | outOutputRegion | FilNet.NullableRef<FilNet.Region> | Pixels set by the spatial map application. Can be null to skip this parameter calculation. |
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
- CreateImageRotationMap(ImageFormat, Single, RotationSizeMode, InterpolationMethod, SpatialMap)
- CreateImageRotationMap(ImageFormat, Single, RotationSizeMode, InterpolationMethod, SpatialMap, Region)