←选择平台

LineRemoveCommandEventArgs构造函数

总结
初始化一个新的LineRemoveCommand带有显式参数。
语法
c#
VB
c++
Java
公共函数(_按值传递图像作为RasterImage,_按值传递地区作为RasterRegion,_按值传递startRow作为整数,_按值传递startColumn作为整数,_按值传递长度作为整数_)
公共LineRemoveCommandEvent (对象的来源,RasterImage图像,RasterRegion地区,intstartRow,intstartColumn,int长度)
公共:LineRemoveCommandEventArgs (RasterImage ^图像,RasterRegion ^地区,intstartRow,intstartColumn,int长度)

参数

图像
影响形象

地区
LEADTOOLSRasterRegion代表行被删除。是程序员的责任处理这个区域时不再需要。

startRow
的起始行线。行是从零开始的。

startColumn
的起始列线。列是从零开始的。

长度
长度(以像素为单位)。

例子

运行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领先的技术公司。保留所有权利。