←选择平台

ImageRegion财产

总结
更新这个属性浅拷贝的形象,也有一个区域包含反向文本删除。
语法
c#
VB
objective - c
c++
Java
公共RasterImageImageRegion {得到;}
公共只读的财产ImageRegion作为RasterImage
@ property(原子,强壮,只读的,可以为空)LTRasterImage * imageRegion
公共RasterImage getImageRegion ()
公共:财产RasterImage ^ImageRegion {RasterImage ^get ();}

属性值

浅拷贝的形象,也有一个区域包含反向文本删除。

讲话

如果InvertedTextCommandFlags.SingleRegion|InvertedTextCommandFlags.LeadRegion已经设置标志的属性,那么什么时候InvertedTextCommand回报,这个属性更新的浅拷贝图片也有一个区域包含反向文本删除。所以设置InvertedTextCommandFlags.SingleRegion|InvertedTextCommandFlags.LeadRegion旗帜。处置时不再需要。

例子

运行InvertedTextCommand在一个图像。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效ImageRegionPropertyExample (){/ /加载一个图像RasterCodecs编解码器=RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,“Clean.tif”));/ /准备命令InvertedTextCommand命令=InvertedTextCommand ();命令。InvertedText + =EventHandler < InvertedTextCommandEventArgs > (InvertedTextEvent_S3);命令。旗帜= InvertedTextCommandFlags.UseDpi|InvertedTextCommandFlags.SingleRegion|InvertedTextCommandFlags.LeadRegion;命令。MaximumBlackPercent = 95;命令。MinimumBlackPercent = 70;命令。MinimumInvertHeight = 500;命令。MinimumInvertWidth = 5000;command.Run(图片);}私人无效InvertedTextEvent_S3 (对象发送方,InvertedTextCommandEventArgs e){MessageBox.Show (“大小”+”(“+ e.BoundingRectangle。左+”、“+ e.BoundingRectangle。前+“)”+”(“+ e.BoundingRectangle。正确的+”、“+ e.BoundingRectangle。底+“)”+“\ n黑数”+ + e.BlackCount.ToString ()“\ n白”+ e.WhiteCount.ToString ());e。状态= RemoveStatus.Remove;}静态LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools.Codecs进口Leadtools.ImageProcessing.Core公共感到失望invertedTextCommand_S3作为InvertedTextCommand公共ImageRegionPropertyExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“Clean.tif”))“准备的命令invertedTextCommand_S3 =InvertedTextCommandinvertedTextCommand_S3。旗帜= InvertedTextCommandFlags.UseDpiInvertedTextCommandFlags.LeadRegionInvertedTextCommandFlags.SingleRegioninvertedTextCommand_S3。MaximumBlackPercent = 95invertedTextCommand_S3。MinimumBlackPercent = 70invertedTextCommand_S3。MinimumInvertHeight = 500invertedTextCommand_S3。MinimumInvertWidth = 5000invertedTextCommand_S3.Run (leadImage)结束私人InvertedTextCommand_InvertedText_S3 (按值传递发送方作为对象,按值传递e作为InvertedTextCommandEventArgs)处理invertedTextCommand_S3.InvertedTextMessageBox.Show (“大小”+”(“+ + e.BoundingRectangle.Left.ToString ()”、“+ + e.BoundingRectangle.Top.ToString ()“)”+”(“+ + e.BoundingRectangle.Right.ToString ()”、“+ + e.BoundingRectangle.Bottom.ToString ()“)”+杆(13)+“黑”+ + e.BlackCount.ToString ()杆(13)+“白色”+ e.WhiteCount.ToString ())e。状态= RemoveStatus.Remove结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

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