←选择平台

LineRemoveCommandEventArgs类

总结
处理发现的每一行LineRemoveCommand
语法
c#
VB
objective - c
c++
Java
公共LineRemoveCommandEventArgs: EventArgs
公共LineRemoveCommandEventArgs继承了System.EventArgs
@接口LTLineRemoveCommandEventArgs: NSObject
公共LineRemoveCommandEvent扩展LeadEvent
公共ref类LineRemoveCommandEventArgs:公共System.EventArgs
例子

运行LineRemoveCommand在一个图像。

c#
VB
使用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.UseGapLineRemoveCommandFlags。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)结束如果结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

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