ChangeImageSize()

Description

Changes the size of an image specified by index.

Syntax

.ChangeImageSize(sImageIndex, lNewwidth, lnewheight, newInterpolationMethod);

Parameters

<short> sImageIndex: specifies the index of the image to be converted. The index is 0-based.
<int> iNewWidth: specifies the new width (in pixels)
<int> iNewHeight: specifies the new height (in pixels)
EnumDWT_InterpolationMethod newInterpolationMethod: specifies the algorithm used to do interpolation.

Allowed Values Interpolation Method
1 EnumDWT_InterpolationMethod.IM_NEARESTNEIGHBOUR
2 EnumDWT_InterpolationMethod.IM_BILINEAR
3 EnumDWT_InterpolationMethod.IM_BICUBIC
4 EnumDWT_InterpolationMethod.IM_BESTQUALITY

Return value

bool

true indicates success. false indicates failure.

Remarks

When false is returned, check ErrorCode or ErrorString for error information.

Is this page helpful?

Leave a Reply

Your email address will not be published.