LEADTOOLS Image Processing (Leadtools.ImageProcessing.Core assembly)

BorderRemoveCommandFlags Enumeration

Show in webframe







Enumerated values that determine the behavior of the border removal process.

Syntax
[FlagsAttribute()]
public enum BorderRemoveCommandFlags : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum BorderRemoveCommandFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As BorderRemoveCommandFlags
[FlagsAttribute()]
public enum BorderRemoveCommandFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  
enum LTBorderRemoveCommandFlags
public enum BorderRemoveCommandFlags
Leadtools.ImageProcessing.Core.BorderRemoveCommandFlags = function() { };
Leadtools.ImageProcessing.Core.BorderRemoveCommandFlags.prototype = {
None = 0x00000000, SingleRegion = 0x00000002, LeadRegion = 0x00000004, CallBackRegion = 0x00000008, ImageUnchanged = 0x00000010, UseVariance = 0x00000800, };
[FlagsAttribute()]
public enum class BorderRemoveCommandFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
ValueMemberDescription
0x00000000NoneNo flags.
0x00000002SingleRegionFor each border encountered by BorderRemoveCommand, if the BorderRemoveCommandEventArgs.Status is set to RemoveStatus.Remove status, the removed border is added to an internal single region. If it is set to RemoveStatus.NoRemove status , the border is not added to the single region. When BorderRemoveCommand returns, either BorderRemoveCommand.ImageRegion or BorderRemoveCommand.Region will reference a region that contains all the removed borders. If LeadRegion is also set, BorderRemoveCommand.ImageRegion will be updated with a shallow copy of image that has a LEAD region that contains all the removed borders. If LeadRegion is not set, BorderRemoveCommand.Region is updated with a LEADTOOLS Leadtools.RasterRegion that contains all the removed borders. When the region (either LEAD or Windows) is no longer needed, it must be disposed (either region allocated in BorderRemoveCommand.ImageRegion or BorderRemoveCommand.Region).
0x00000004LeadRegionWhen the BorderRemoveCommand returns, BorderRemoveCommand.ImageRegion is updated with a shallow copy of the affected image that also contains a region with all the removed borders. This flag must be used in conjunction with SingleRegion. So set BorderRemoveCommand.Flags to SingleRegion | LeadRegion.
0x00000008CallBackRegionBorderRemoveCommandEventArgs.Region property is updated with a LEADTOOLS Leadtools.RasterRegion that contains the current border to be removed. Setting this flag lets the user create his or her own composite of removed borders by combining the regions received, if BorderRemoveCommandEventArgs.Status is set to RemoveStatus.Remove. The regions can be combined using a logical OR operator. Combining all regions received when the BorderRemoveCommandEventArgs.Status is set to RemoveStatus.Remove status results in a region identical to the region created when SingleRegion is set in BorderRemoveCommand.Flags. For an example, refer to BorderRemoveCommand. When the region received by the BorderRemoveCommandEventArgs.Region property is no longer needed, it must be disposed.
0x00000010ImageUnchangedThe affected image is unchanged.
0x00000800UseVarianceConsider border variance when performing border removal. If this flag is passed, the BorderRemoveCommand.Variance property is used. If this flag is not passed, the BorderRemoveCommand.Variance property 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.BorderRemoveCommandFlags

Requirements

Target Platforms

See Also

Reference

Leadtools.ImageProcessing.Core Namespace

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.