c#
VB
c++
公共无效ModifyRgbResponse (
IList <TwainElement8>元素,
intbitsPerPixel,
TwainRgbResponseFlags旗帜
)
公共子ModifyRgbResponse (_
按值传递元素作为IList接口(TwainElement8), _
按值传递bitsPerPixel作为整数, _
按值传递旗帜作为TwainRgbResponseFlags_
)
公共:
无效ModifyRgbResponse (
IList <TwainElement8> ^元素,
intbitsPerPixel,
TwainRgbResponseFlags旗帜
)
元素
包含要设置的数据的RGB元素数组。
bitsPerPixel
要设置的每像素位。这是用来确定RGB元素的数量。
旗帜
指示函数行为的标志。
设置从当前TWAIN源传输数据时使用的RGB元素。
使用Leadtools;
使用Leadtools.Twain;
公共无效ModifyRgbResponseExample (IntPtr父)
{
TwainSession session =新TwainSession ();
会话。启动(父,“制造商”,“productFamily”,“版本”,“应用程序”, TwainStartupFlags.None);
List
rgbElements =零; TwainElement8 tempElement =新TwainElement8 ();
tempElement。指数= 0;
tempElement。通道1 = 0;
tempElement。通道2 = 0;
tempElement。通道3 = 0;
rgbElements.Add (tempElement);
tempElement。指数= 1;
tempElement。Channel1 = 255;
tempElement。Channel2 = 255;
tempElement。Channel3 = 255;
rgbElements.Add (tempElement);
试一试
{
会话。ModifyRgbResponse(rgbElements, 1, TwainRgbResponseFlags.TwainRgbResponseSet);
}
抓(异常交货)
{
MessageBox.Show (ex.Message);
}
session.Shutdown ();
}
进口Leadtools
进口Leadtools。吐温
公共子ModifyRgbResponseExample (按值传递父作为IntPtr)
昏暗的会话作为TwainSession =新TwainSession ()
会话。启动(父,“制造商”,“productFamily”,“版本”,“应用程序”TwainStartupFlags.None)
昏暗的rgbElements作为List(TwainElement8) =没有什么
昏暗的tempElement作为TwainElement8 =新TwainElement8 ()
tempElement。指数= 0
tempElement。通道1 = 0
tempElement。通道2 = 0
tempElement。通道3 = 0
rgbElements.Add (tempElement)
tempElement。索引= 1
tempElement。Channel1 = 255
tempElement。Channel2 = 255
tempElement。Channel3 = 255
rgbElements.Add (tempElement)
试一试
会话。ModifyRgbResponse(rgbElements, 1, TwainRgbResponseFlags.TwainRgbResponseSet)
抓前女友作为异常
MessageBox.Show (ex.Message)
结束试一试
session.Shutdown ()
结束子
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗网络查看器net
188宝金博怎么下载
支持的平台上
.NET、Java、Android和iOS/macOS程序集
C API/ c++类库
HTML5 JavaScript库
您的邮件已发送给技术支持!应该有人联系!如果你的事情很紧急,请回来聊天。
聊天时间:
周一至周五,美国东部时间上午8:30至下午6:00
感谢您的反馈!
请再次填写表格,开始新的聊天。
所有代理目前都离线。
聊天时间:
星期一至星期五
美国东部时间上午8:30 -下午6点
如需与我们联系,请填写此表格,我们将通过电子邮件与您联系。