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,
	out AvlNet.Region outOutputRegion
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatInformation about dimensions, depth and pixel type of the image.
inNewWidthint<1, INF>Width of an image created by output spatial map application.
inNewHeightint<1, INF>Height of an image created by output spatial map application.
inInterpolationMethodAvlNet.InterpolationMethodBilinearInterpolation method used in extraction of image pixel values. Default value: Bilinear.
outResizeMapAvlNet.SpatialMapOutput spatial map.
outOutputRegionAvlNet.RegionPixels set by the spatial map application

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.

See also