Changes the display size of the image of a specified index in buffer.
Boolean ObjectName. ChangeImageSize(Short sImageIndex, Long lNewwidth, Long lnewheight, enumInterpolationMethod InterpolationMethod)
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 |
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.
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