←Select platform

BorderRemoveCommandFlags Enumeration

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
[FlagsAttribute()] 
public enum BorderRemoveCommandFlags   
<FlagsAttribute()> 
Public Enum BorderRemoveCommandFlags  
    
    
[FlagsAttribute()] 
public enum BorderRemoveCommandFlags    
typedef NS_OPTIONS(NSUInteger, LTBorderRemoveCommandFlags) 
public enum BorderRemoveCommandFlags 
Leadtools.ImageProcessing.Core.BorderRemoveCommandFlags = function() { }; 
Leadtools.ImageProcessing.Core.BorderRemoveCommandFlags.prototype = {<br/> 
  None = 0x00000000, 
    SingleRegion = 0x00000002, 
    LeadRegion = 0x00000004, 
    CallBackRegion = 0x00000008, 
    ImageUnchanged = 0x00000010, 
    UseVariance = 0x00000800, 
    AutoRemove = 0x00001000, 
     
 }; 
[FlagsAttribute()] 
public enum class BorderRemoveCommandFlags   

Members

ValueMemberDescription
0x00000000None No flags.
0x00000002SingleRegion For each border encountered by BorderRemoveCommand, if the 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 ImageRegion or Region will reference a region that contains all the removed borders. 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 borders. If LeadRegion is not set, Region is updated with a 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 ImageRegion or Region).
0x00000004LeadRegion When the BorderRemoveCommand returns, 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 Flags to SingleRegion | LeadRegion.
0x00000008CallBackRegion Region property is updated with a 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 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 status results in a region identical to the region created when SingleRegion is set in Flags. For an example, refer to BorderRemoveCommand. When the region received by the Region property is no longer needed, it must be disposed.
0x00000010ImageUnchanged The affected image is unchanged.
0x00000800UseVariance Consider border variance when performing border removal. If this flag is passed, the Variance property is used. If this flag is not passed, the Variance property is ignored.
0x00001000AutoRemove Used to automatically remove relatively wide black borders. if this flag is set, all other parameters will be ignored.
Remarks

You can use a bitwise OR ( ¦ ) to specify one or more flags.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly