c#
VB
objective - c
c++
Java
公共类LineRemoveCommandEventArgs: EventArgs
公共类LineRemoveCommandEventArgs
继承了System.EventArgs
@接口LTLineRemoveCommandEventArgs: NSObject
公共类LineRemoveCommandEvent扩展LeadEvent
公共ref类LineRemoveCommandEventArgs:公共System.EventArgs
运行LineRemoveCommand在一个图像。
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.ImageProcessing.Core;
公共无效LineRemoveCommandEventArgsExample ()
{
/ /加载一个图像
RasterCodecs编解码器=新RasterCodecs ();
编解码器。ThrowExceptionsOnInvalidImages =真正的;
RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“Clean.tif”));
/ /准备命令
LineRemoveCommand命令=新LineRemoveCommand (LineRemoveCommandFlags.UseGap|LineRemoveCommandFlags。CallBackRegion 200、5、7、10、2, 2, LineRemoveCommandType.Horizontal);
命令。LineRemove + =新EventHandler < LineRemoveCommandEventArgs > (LineRemoveEvent_S4);
command.Run(图片);
}
私人无效LineRemoveEvent_S4 (对象发送方,LineRemoveCommandEventArgs e)
{
LineRemoveCommandEventArgs ee =新LineRemoveCommandEventArgs (e。形象,e。地区,e。StartRow e。StartColumn e.Length);
e。状态= RemoveStatus.Remove;
如果(e.Region!=零)
e.Image.SetRegion (零e。地区,RasterRegionCombineMode.AndNotRegion);
}
静态类LEAD_VARS
{
公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;
}
进口Leadtools
进口Leadtools.Codecs
进口Leadtools.ImageProcessing.Core
公共感到失望lineRemoveCommand_S4作为LineRemoveCommand
公共子LineRemoveCommandEventArgsExample ()
昏暗的编解码器作为新RasterCodecs ()
编解码器。ThrowExceptionsOnInvalidImages =真正的
昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“Clean.tif”))
“准备的命令
lineRemoveCommand_S4 =新LineRemoveCommand (LineRemoveCommandFlags.UseGap或LineRemoveCommandFlags。CallBackRegion 200、5、7、10、2、2、LineRemoveCommandType.Horizontal)
lineRemoveCommand_S4.Run (leadImage)
结束子
私人子LineRemoveCommand_LineRemove_S4 (按值传递发送方作为对象,按值传递e作为LineRemoveCommandEventArgs)处理lineRemoveCommand_S4.LineRemove
昏暗的ee作为LineRemoveCommandEventArgs =新LineRemoveCommandEventArgs (e。形象,e。地区,e。StartRow e。StartColumn e.Length)
e。状态= RemoveStatus.Remove
如果不(e.Region是没有什么)然后
e.Image.SetRegion (没有什么e。地区,RasterRegionCombineMode.AndNotRegion)
结束如果
结束子
公共NotInheritable类LEAD_VARS
公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”
结束类
帮助收藏
光栅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点
联系我们请填写这张表格,我们将通过电子邮件联系你。