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

HolePunchRemoveCommandFlags Enumeration






Values that determine the behavior of the hole punch removal process.

.NET support WinRT support
Syntax
[FlagsAttribute()]
public enum HolePunchRemoveCommandFlags : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum HolePunchRemoveCommandFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As HolePunchRemoveCommandFlags
[FlagsAttribute()]
public enum HolePunchRemoveCommandFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.ImageProcessing.Core.HolePunchRemoveCommandFlags = function() { };
Leadtools.ImageProcessing.Core.HolePunchRemoveCommandFlags.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()]
public enum class HolePunchRemoveCommandFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
CallBackRegionThe HolePunchRemoveCommandEventArgs.Region property receives a LEADTOOLS Leadtools.RasterRegion that contains the current hole punch to be removed. Setting this flag lets the user create his or her own composite of removed hole punches by combining the regions received, if HolePunchRemoveCommandEventArgs.Status is set to RemoveStatus.Remove. The regions can be combined using a logical OR operator. Combining all regions received when the HolePunchRemoveCommandEventArgs.Status is set to RemoveStatus.Remove results in a region identical to the region created when SingleRegion is set in HolePunchRemoveCommand.Flags. For an example, refer to HolePunchRemoveCommand. When the region received by the HolePunchRemoveCommandEventArgs.Region property is no longer needed, it must be disposed of.
ImageUnchangedThe Run method image is unchanged. This is useful if you do not want to actually change the image data, but obtain information about any hole punches that are found.
LeadRegionWhen HolePunchRemoveCommand returns, HolePunchRemoveCommand.ImageRegion is updated with a shallow copy of the Run method image that also contains a region with all the removed hole punches. This flag must be used in conjunction with SingleRegion. So set HolePunchRemoveCommand.Flags to SingleRegion | LeadRegion
NoneNo flags.
SingleRegionFor each hole punch encountered by HolePunchRemoveCommand, if the HolePunchRemoveCommandEventArgs.Status is set to RemoveStatus.Remove, the removed hole punch is added to an internal single region. If it is set to RemoveStatus.NoRemove, the hole punch is not added to the single region. When HolePunchRemoveCommand returns, either HolePunchRemoveCommand.ImageRegion or HolePunchRemoveCommand.Region will reference a region that contains all the removed hole punches. If LeadRegion is also set, HolePunchRemoveCommand.ImageRegion will be updated with a shallow copy of image that has a LEAD region that contains all the removed hole punches. If LeadRegion is not set, HolePunchRemoveCommand.Region is updated with a LEADTOOLS Leadtools.RasterRegion that contains all the removed hole punches. When the region (either LEAD or Windows) is no longer needed, it must be disposed (either region allocated in HolePunchRemoveCommand.ImageRegion or HolePunchRemoveCommand.Region).
UseAdvancedDetectionUse Advanced Hole Punch Detection to return more accurate results.
UseCountUse the HolePunchRemoveCommand.MinimumHoleCount and HolePunchRemoveCommand.MaximumHoleCount properties of the HolePunchRemoveCommand to indicate the number of hole punches to remove. If this flag is not set, default values for the two count values will be used. These default values are as follows: HolePunchRemoveCommand.MinimumHoleCount = 3 and HolePunchRemoveCommand.MaximumHoleCount = 3.
UseDpiThe unit of measure for all properties of the HolePunchRemoveCommand 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 HolePunchRemoveCommand is pixels.
UseLocationUse the HolePunchRemoveCommand.Location property of the HolePunchRemoveCommand to indicate the location of the hole punches to remove. If this flag is not set, a default of HolePunchRemoveCommandLocation.Left will be used.
UseNormalDetectionUse Normal Hole Punch Detection.
UseSizeUse the HolePunchRemoveCommand.MinimumHoleWidth, HolePunchRemoveCommand.MinimumHoleHeight, HolePunchRemoveCommand.MaximumHoleWidth, HolePunchRemoveCommand.MaximumHoleHeight properties of the HolePunchRemoveCommand to indicate the size of the hole punches to remove If this flag is not set, default values for the four sizes will be used. If HolePunchRemoveCommandFlags.UseDpi is set, the defaults are calculated from the image DPI. Otherwise, the defaults are calculated from the image width and height.
Remarks
You can use a bitwise OR (|) to specify one or more flags.
Inheritance Hierarchy

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

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.