You are here: Start » AVL.NET » AVL.CreateImageResizeMap Method
AVL.CreateImageResizeMap Method
Creates a spatial map representing an image resizing.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void CreateImageResizeMap( AvlNet.ImageFormat inImageFormat, int inNewWidth, int inNewHeight, AvlNet.InterpolationMethod inInterpolationMethod, out AvlNet.SpatialMap outResizeMap )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImageFormat | AvlNet.ImageFormat | Information about dimensions, depth and pixel type of the image. | |||
inNewWidth | int | <1, INF> | Width of an image created by output spatial map application. | ||
inNewHeight | int | <1, INF> | Height of an image created by output spatial map application. | ||
inInterpolationMethod | AvlNet.InterpolationMethod | Bilinear | Interpolation method used in extraction of image pixel values. Default value: Bilinear. | ||
outResizeMap | AvlNet.SpatialMap | Output spatial map. |
Description
The operation generates map that stretches or shrinks the image. 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 ResizeImage.