Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.27
|
Leadtools.ImageProcessing.Core Namespace : LineRemoveCommandFlags Enumeration |
[FlagsAttribute()] public enum LineRemoveCommandFlags : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
'Declaration
<FlagsAttribute()> Public Enum LineRemoveCommandFlags Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
'Usage
Dim instance As LineRemoveCommandFlags
[FlagsAttribute()] public enum LineRemoveCommandFlags : System.IComparable, System.IConvertible, System.IFormattable
typedef NS_OPTIONS(NSUInteger, LTLineRemoveCommandFlags)
public enum LineRemoveCommandFlags
Leadtools.ImageProcessing.Core.LineRemoveCommandFlags = function() { }; Leadtools.ImageProcessing.Core.LineRemoveCommandFlags.prototype = {<br/> None = 0x00000000, UseDpi = 0x00000001, SingleRegion = 0x00000002, LeadRegion = 0x00000004, CallBackRegion = 0x00000008, ImageUnchanged = 0x00000010, RemoveEntire = 0x00000200, UseGap = 0x00000400, UseVariance = 0x00000800, };
[FlagsAttribute()] public enum class LineRemoveCommandFlags : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Value | Member | Description |
---|---|---|
0x00000000 | None | No flags. |
0x00000001 | UseDpi | The 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. |
0x00000002 | SingleRegion | For each line found by LineRemoveCommand, if the 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 ImageRegion or Region will reference a region that contains all the removed lines. If LeadRegion is also set, 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, Region is updated with a 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 ImageRegion or Region). |
0x00000004 | LeadRegion | When LineRemoveCommand returns, 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 Flags to SingleRegion | LeadRegion |
0x00000008 | CallBackRegion | The Region property receives a 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 Status is set to RemoveStatus.Remove. The regions can be combined using a logical OR operator. Combining all regions received when the Status is set to RemoveStatus.Remove results in a region identical to the region created when SingleRegion is set in Flags. For an example, refer to LineRemoveCommand. When the region received by the Region property is no longer needed, it must be disposed of. |
0x00000010 | ImageUnchanged | The affected image (the Run method image)is unchanged. |
0x00000200 | RemoveEntire | Remove 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. |
0x00000400 | UseGap | Consider "gaps" in lines when performing line removal. If this flag is set, the gap length value (either the GapLength property or the gapLength parameter of the Constructor) is used. If this flag is not passed, the gap length value is ignored. |
0x00000800 | UseVariance | Consider line variance when performing line removal. If this flag is passed, the variance value (either the Variance property or the variance parameter of the Constructor) is used. If this flag is not passed, the variance value is ignored. |
System.Object
System.ValueType
System.Enum
Leadtools.ImageProcessing.Core.LineRemoveCommandFlags