支持的版本

ActiveX EditionPlug-in EditionMac EditionSince V4.1Since V4.1Since V6.4

语法

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

参数

Short sImageIndex:指定缓冲区图像的索引,索引从0开始
Long lWidth:指定新图像的像素宽度
Long lHeight:指定新图像的像素高度
enumInterpolationMethod InterpolationMethod:指定插入的方法

Allowed ValuesInterpolation Method1NearestNeighbor2Bilinear3Bicubic

返回值

Boolean:True表示成功,FALSE表示失败

IfThrowException属性为True时,发生错误时会抛出一个异常。当返回FALSE或抛出异常时,检查 ErrorCode 属性和ErrorString属性获取错误信息。

标记

ChangeImageSize()改变图像的显示尺寸并将原始的图像换成新的。