LEADTOOLS Image Processing (Leadtools.ImageProcessing.Core assembly)
LEAD Technologies, Inc

LineRemoveCommandFlags Enumeration






Flags that determine the behavior of the line removal process.

.NET support WinRT support Silverlight support
Syntax
[FlagsAttribute()]
public enum LineRemoveCommandFlags : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum LineRemoveCommandFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As LineRemoveCommandFlags
[FlagsAttribute()]
public enum LineRemoveCommandFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.ImageProcessing.Core.LineRemoveCommandFlags = function() { };
Leadtools.ImageProcessing.Core.LineRemoveCommandFlags.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()]
public enum class LineRemoveCommandFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
CallBackRegionThe LineRemoveCommandEventArgs.Region property receives a LEADTOOLS Leadtools.RasterRegion that contains the current line to be removed. Setting this flag lets the user create his or her own composite of removed lines by combining the regions received, if LineRemoveCommandEventArgs.Status is set to RemoveStatus.Remove. The regions can be combined using a logical OR operator. Combining all regions received when the LineRemoveCommandEventArgs.Status is set to RemoveStatus.Remove results in a region identical to the region created when SingleRegion is set in LineRemoveCommand.Flags. For an example, refer to LineRemoveCommand. When the region received by the LineRemoveCommandEventArgs.Region property is no longer needed, it must be disposed of.
ImageUnchangedThe affected image (the Run method image)is unchanged.
LeadRegionWhen LineRemoveCommand returns, LineRemoveCommand.ImageRegion is updated with a shallow copy of affected image that also contains a region with all the removed lines. This flag must be used in conjunction with SingleRegion. So set LineRemoveCommand.Flags to SingleRegion | LeadRegion
NoneNo flags.
RemoveEntireRemove the entire line, even if the line passes through a character or a wall.
Consider the line below.



Setting iMaxWallPercent as 80 and passing LINE_REMOVE_ENTIRE will remove the red pixels as shown below.


SingleRegionFor each line found by LineRemoveCommand, if the LineRemoveCommandEventArgs.Status is set to RemoveStatus.Remove, the removed line is added to an internal single region. If it is set to RemoveStatus.NoRemove, the line is not added to the single region. When LineRemoveCommand returns, either LineRemoveCommand.ImageRegion or LineRemoveCommand.Region will reference a region that contains all the removed lines. If LeadRegion is also set, LineRemoveCommand.ImageRegion will be updated with a shallow copy of image that has a LEAD region that contains all the removed lines. If LeadRegion is not set, LineRemoveCommand.Region is updated with a LEADTOOLS Leadtools.RasterRegion that contains all the removed lines. When the region (either LEAD or Windows) is no longer needed, it must be disposed of (either region allocated in LineRemoveCommand.ImageRegion or LineRemoveCommand.Region).
UseDpiThe unit of measure for all properties of the LineRemoveCommand is thousandths of an inch. Use the image's DPI to convert to pixels. This allows the processing of many images with different DPI. If this flag is not set, the unit of measure for all properties of the LineRemoveCommand is pixels.
UseGapConsider "gaps" in lines when performing line removal. If this flag is set, the gap length value (either the LineRemoveCommand.GapLength property or the gapLength parameter of the Constructor) is used. If this flag is not passed, the gap length value is ignored.
UseVarianceConsider line variance when performing line removal. If this flag is passed, the variance value (either the LineRemoveCommand.Variance property or the variance parameter of the Constructor) is used. If this flag is not passed, the variance value is ignored.
Remarks
You can use a bitwise OR (|) to specify one or more flags.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.ImageProcessing.Core.LineRemoveCommandFlags

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.ImageProcessing.Core Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.