You are here: Start » AVL.NET » AVL.ResizeImage(AvlNet.Image, int?, int?, AvlNet.ResizeMethod, AvlNet.Image)

AVL.ResizeImage(AvlNet.Image, int?, int?, AvlNet.ResizeMethod, AvlNet.Image)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ResizeImage(
	AvlNet.Image inImage,
	int? inNewWidth,
	int? inNewHeight,
	AvlNet.ResizeMethod inResizeMethod,
	out AvlNet.Image outImage
)

Parameters

inImage
Type: AvlNet.Image
inNewWidth
Type: System.Nullable<System.Int32>
inNewHeight
Type: System.Nullable<System.Int32>
inResizeMethod
Type: AvlNet.ResizeMethod
outImage
Type: AvlNet.Image

Description

The operation stretches or shrinks the inImage so that the dimensions of the outImage equal inNewWidth, inNewHeight. Three modes of pixel interpolation are available, with Area mode giving best results, but being most computationally expensive.

Examples

ResizeImage performed on the sample image with inNewWidth = 300, inNewHeight = 200.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

Error type Description
DomainError Input and output images are not distinct in ResizeImage.
DomainError Output image is too big in ResizeImage.
DomainError Empty image on input in ResizeImage.

See also