The leading provider of version control solutions and TWAIN SDKs
  • Contact us









ChangeImageSize Method

Description

Changes the display size of the image of a specified index in buffer.

ActiveX Edition Plug-in Edition Mac Edition
Since V4.1 Since V4.1 Since V6.4

Syntax

Boolean ObjectName. ChangeImageSize(Short sImageIndex, Long lNewwidth, Long lnewheight, enumInterpolationMethod InterpolationMethod)

Parameters

Short sImageIndex: specifies the index of image in buffer. The index is 0-based. 

Long lWidth: specifies the pixel width of the new image.

Long lHeight: specifies the pixel height of the new image.

enumInterpolationMethod InterpolationMethod: specifies the method to do interpolation.

Allowed Values

Interpolation Method

1 NearestNeighbor
2 Bilinear
3 Bicubic

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

ChangeImageSize() changes the display size of an image and replaces the original image with new one.

See Also

RotateLeft(), RotateRight(), Flip(), Mirror(), Crop(), CropToClipboard(), GetImageSize(), ShowImageEditor(),
ImageEditorWindowTitle property, ImageEditorIfReadonly property, ImageEditorIfEnableEnumerator property