You are here: Start » FIL.NET » FIL.ResizeImage
Enlarges or shrinks an image to new dimensions.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
C++
C#
public static void ResizeImage ( FilNet.Image inImage, FilNet.ResizeMethod inResizeMethod, FilNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inResizeMethod | FilNet.ResizeMethod | |||
![]() | outImage | FilNet.Image | Output 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
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty image on input in ResizeImage. |
DomainError | Input and output images are not distinct in ResizeImage. |
DomainError | Output image is too big in ResizeImage. |