用ChangeImageSize Method改變Dynamic Web TWAIN的圖像大小。注意:這個圖像具體指的是緩衝區的圖像。工具
ActiveX Edition | Plug-in Edition | Mac Edition |
Since V4.1 | Since V4.1 | Since V6.4 |
Boolean ObjectName. ChangeImageSize(Short sImageIndex, Long lNewwidth, Long lnewheight,
enumInterpolationMethod InterpolationMethod)spa
Short sImageIndex:指定緩衝區圖像的索引,索引從0開始
Long lWidth:指定新圖像的像素寬度
Long lHeight:指定新圖像的像素高度
enumInterpolationMethod InterpolationMethod:指定插入的方法rest
Allowed Values | Interpolation Method |
1 | NearestNeighbor |
2 | Bilinear |
3 | Bicubic |
Boolean:True表示成功,FALSE表示失敗索引
IfThrowException屬性爲True時,發生錯誤時會拋出一個異常。當返回FALSE或拋出異常時,檢查 ErrorCode 屬性和ErrorString屬性獲取錯誤信息。get
ChangeImageSize()改變圖像的顯示尺寸並將原始的圖像換成新的。it