公共IList <TwainFastConfiguration> FindConfiguration (intbitsPerPixel,TwainTransferMechanismtransferMechanism,intbufferIteration)
公共函数FindConfiguration (_按值传递bitsPerPixel作为整数,_按值传递transferMechanism作为TwainTransferMechanism,_按值传递bufferIteration作为整数_)作为IList接口(TwainFastConfiguration)
公共:IList <TwainFastConfiguration> ^ FindConfiguration (intbitsPerPixel,TwainTransferMechanismtransferMechanism,intbufferIteration)
bitsPerPixel
生成的文件的像素的深度。
注意,并非所有比特每像素可用于所有文件格式。使用0 bitsPerPixel存储文件使用最接近bitsPerPixel价值支持的格式。
transferMechanism
要使用的吐温传输模式。
bufferIteration
内存配置的数量将受到考验。这个参数的最大值是10。
一组可用的配置为当前会话。
有关更多信息,请参考快速吐温(扫描配置)。
使用Leadtools;使用Leadtools.Twain;公共无效FindConfigurationExample (IntPtr父){TwainSession会话=新TwainSession ();session.Startup(父,“制造商”,“productFamily”,“版本”,“应用程序”,TwainStartupFlags.None);试一试{IList < TwainFastConfiguration > twFastConfigs =会话。TwainTransferMechanism FindConfiguration (1。记忆,5);MessageBox.Show (“GetScanConfigs方法是成功的。”);字符串味精;味精= String.Format (“扫描配置数= {0}\ n ",twFastConfigs.Count);MessageBox.Show(味精);味精= String.Format (“传输模式= {0}= {1}\ \ nFile格式nBuffer大小= {2}\ nRequired时间= {3}\ n ",twFastConfigs [0] .TransferMechanism,twFastConfigs [0] .ImageFormat,twFastConfigs [0] .BufferSize,twFastConfigs [0] .RequiredTime);MessageBox.Show(味精,“扫描配置……”);}抓(异常交货){MessageBox.Show (ex.Message“错误! ! !”);}session.Shutdown ();}
进口Leadtools进口Leadtools.Twain公共子FindConfigurationExample (按值传递父作为IntPtr)昏暗的会话作为TwainSession =新TwainSession ()session.Startup(父,“制造商”,“productFamily”,“版本”,“应用程序”TwainStartupFlags.None)试一试昏暗的twFastConfigs作为IList (TwainFastConfiguration) =会话。TwainTransferMechanism FindConfiguration (1。记忆,5)MessageBox.Show (“GetScanConfigs方法是成功的。”)昏暗的味精作为字符串味精=字符串.Format (“扫描配置数= {0}"&常数。vbLf twFastConfigs。数)MessageBox.Show(味精)味精=字符串.Format (“传输模式= {0}”&常数。vbLf &“文件格式= {1}”&常数。vbLf &“缓冲区大小= {2}”&常数。vbLf &“需要时间= {3}”&常数。.TransferMechanism vbLf, twFastConfigs (0),twFastConfigs (0)。ImageFormat twFastConfigs (0)。BufferSize, twFastConfigs (0) .RequiredTime)MessageBox.Show(味精,“扫描配置……”)抓前女友作为异常MessageBox.Show (ex.Message“错误! ! !”)结束试一试session.Shutdown ()结束子
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗Web查看器net
188宝金博怎么下载
支持的平台上
net, Java, Android和iOS / macOS组件
C / c++类库的API
HTML5 JavaScript库
你的邮件已经发送到支持!有人应该联系!如果你的问题是紧急请回到聊天。
聊天时间:
周一——周五,上午6点等
谢谢你的反馈!
请填写表单重新开始一个新的聊天。
所有代理目前离线。
聊天时间:
周一-周五
早上8:30 - 6点
联系我们请填写这张表格,我们将通过电子邮件联系你。
