Jaa


Image.resize(Int32, Int32, InterpolationMode) Method

Definition

Resizes the image to the size that is specified by the newWidth and newHeight parameters.

public:
 virtual int resize(int _newWidth, int _newHeight, Dynamics::AX::Application::InterpolationMode _InterpolationMode);
public virtual int resize (int _newWidth, int _newHeight, Dynamics.AX.Application.InterpolationMode _InterpolationMode);
abstract member resize : int * int * Dynamics.AX.Application.InterpolationMode -> int
override this.resize : int * int * Dynamics.AX.Application.InterpolationMode -> int
Public Overridable Function resize (_newWidth As Integer, _newHeight As Integer, _InterpolationMode As InterpolationMode) As Integer

Parameters

_newWidth
Int32

The resizing method.

_newHeight
Int32

The resizing method.

_InterpolationMode
InterpolationMode

The resizing method.

Returns

0 indicates success; otherwise, failure.

Remarks

The possible values for the InterpolationMode parameter are those available in the InterpolationMode system enum:

0 InterpolationModeDefault Specifies the default interpolation mode.
1 InterpolationModeLowQuality Specifies a low-quality mode.
2 InterpolationModeHighQuality Specifies a high-quality mode.
3 InterpolationModeBilinear Specifies bilinear interpolation. No pre-filtering is done. This method is not suitable for shrinking an image below 50% of its original size.
4 InterpolationModeBicubic Specifies bicubic interpolation. No pre-filtering is done. This method is not suitable for shrinking an image below 25% of its original size.
5 InterpolationModeNearestNeighbor Specifies nearest-neighbor interpolation.
6 InterpolationModeHighQualityBilinear Specifies high-quality, bilinear interpolation. Pre-filtering is performed to ensure high-quality shrinking.
7 InterpolationModeHighQualityBicubic Specifies high-quality, bicubic interpolation. Pre-filtering is performed to ensure high-quality shrinking. This mode produces the highest quality transformed images.

Applies to