c#
VB
c++
Java
公共函数新(_按值传递图像作为RasterImage,_按值传递地区作为RasterRegion,_按值传递startRow作为整数,_按值传递startColumn作为整数,_按值传递长度作为整数_)
公共LineRemoveCommandEvent (对象的来源,RasterImage图像,RasterRegion地区,intstartRow,intstartColumn,int长度)
公共:LineRemoveCommandEventArgs (RasterImage ^图像,RasterRegion ^地区,intstartRow,intstartColumn,int长度)
图像
影响形象
地区
LEADTOOLSRasterRegion代表行被删除。是程序员的责任处理这个区域时不再需要。
startRow
的起始行线。行是从零开始的。
startColumn
的起始列线。列是从零开始的。
长度
长度(以像素为单位)。
运行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点
联系我们请填写这张表格,我们将通过电子邮件联系你。
