You are here: Start » AVL.NET » AVL.ResizeImage_Relative(AvlNet.Image, float, float, AvlNet.ResizeMethod, AvlNet.Image)
AVL.ResizeImage_Relative(AvlNet.Image, float, float, AvlNet.ResizeMethod, AvlNet.Image)
| 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
- inImage
- Type: AvlNet.Image
- inHorizontalScale
- Type: System.Single
- inVerticalScale
- Type: System.Single
- inResizeMethod
- Type: AvlNet.ResizeMethod
- outImage
- Type: AvlNet.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.
Examples
![]() |
![]() |
ResizeImage_Relative performed on the sample image with inHorizontalScale = 0.5, inVerticalScale = 0.25.


