关于kodak图像编辑控件(imgedit)的疑问?
本人在进行对扫描仪的vc编程时用了ActiveX控件:kodak图像编辑控件(imgedit)。但是当用到
imgEdit.SaveAs()时看不懂其参数。不能把参数设为Integer。请各位给小弟一点提示,和VC下的正确用法.
函数原型:
void SaveAs(LPCTSTR Image, const VARIANT& FileType, const VARIANT& PageType, const VARIANT& CompressionType, const VARIANT& CompressionInfo, const VARIANT& SaveAtZoom);
帮助如下:
Saves the displayed image using the file name specified.
Applies To
Image Edit control
Syntax
object.SaveAs [Image,FileType,PageType,CompressionType,CompressionInfo,SaveAtZoom]
Arguments
Parameter Data Type Setting
Image String The name of the image file being saved
FileType Integer
(enumerated) The FileType the image is being saved as
PageType Integer
(enumerated) The PageType the image is being saved as
CompressionType Integer
(enumerated) The CompressionType at which the image is being saved
CompressionInfo Integer
(enumerated) The CompressionInfo setting of the image being saved
SaveAtZoom Boolean Whether the image is being saved using the current or original scale percentage value:True -- The image is being saved using the current scale percentage value
False -- The image is being saved using the original scale percentage value