FindConfiguration方法

总结
(文档/医疗)当前会话的所有可用的配置。
语法
c#
VB
c++
公共函数FindConfiguration (_按值传递bitsPerPixel作为整数,_按值传递transferMechanism作为TwainTransferMechanism,_按值传递bufferIteration作为整数_)作为IList接口(TwainFastConfiguration)

参数

bitsPerPixel
生成的文件的像素的深度。

注意,并非所有比特每像素可用于所有文件格式。使用0 bitsPerPixel存储文件使用最接近bitsPerPixel价值支持的格式。

transferMechanism
要使用的吐温传输模式。

bufferIteration
内存配置的数量将受到考验。这个参数的最大值是10。

返回值

一组可用的配置为当前会话。

讲话

有关更多信息,请参考快速吐温(扫描配置)

例子
c#
VB
使用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 ()结束
需求

目标平台

Leadtools.Twain作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。