You are here: Start » AVL.NET » AVL.ResizeImage_Relative Method
AVL.ResizeImage_Relative Method
Resizes an image by a factor along each axis.
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
public static void ResizeImage_Relative( AvlNet.Image inImage, float inHorizontalScale, float inVerticalScale, AvlNet.ResizeMethod inResizeMethod, out AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inHorizontalScale | float | <0.0f, 65536.0f> | 1.0f | Default value: 1.0f. | |
inVerticalScale | float | <0.0f, 65536.0f> | 1.0f | Default value: 1.0f. | |
inResizeMethod | AvlNet.ResizeMethod | ||||
outImage | AvlNet.Image | Output image. |
Description
The operation stretches or shrinks the inImage so that its dimensions are scaled, accordingly, by the factor of inHorizontalScale, inVerticalScale. Two modes of pixel interpolation are available, the bilinear filtering being more precise and computationally expensive.