←Select platform

SmoothCommandFlags Enumeration

Summary
Enumerated values that determine the behavior of the smoothing process.

Syntax
C#
Objective-C
C++/CLI
Java
Python
[FlagsAttribute()] 
public enum SmoothCommandFlags   
typedef NS_OPTIONS(NSUInteger, LTSmoothCommandFlags) 
public final class SmoothCommandFlags 
    extends java.lang.Enum<SmoothCommandFlags> 
[FlagsAttribute()] 
public enum class SmoothCommandFlags   
class SmoothCommandFlags(Enum): 
   None = 0 
   SingleRegion = 2 
   LeadRegion = 4 
   ImageUnchanged = 16 
   FavorLong = 256 
Members
ValueMemberDescription
0x00000000None No flags.
0x00000002SingleRegion For each bump or nick found by the SmoothCommand, if the Status is set to RemoveStatus.Remove , the removed bump or nick is added to an internal single region. If it is set to RemoveStatus.NoRemove, the bump or nick is not added to the single region. When SmoothCommand returns, either ImageRegion or Region will reference a region that contains all the removed bumps or nicks. If LeadRegion is also set, ImageRegion will be updated with a shallow copy of the image that has a LEAD region that contains all the removed bumps or nicks. If LeadRegion is not set, Region is updated with a LEADTOOLS RasterRegion that contains all the removed bumps or nicks. When the region (either LEAD or Windows) is no longer needed, it must be disposed of (either the region allocated in ImageRegion or Region).
0x00000004LeadRegion When SmoothCommand returns, ImageRegion is updated with a shallow copy of the affected image that also contains a region with all the removed bumps or nicks. This flag must be used in conjunction with SingleRegion.
0x00000010ImageUnchanged The affected image (Run method image) is unchanged.
0x00000100FavorLong Processes long bumps or nicks before short bumps or nicks. If this flag is not passed, short is favored over long. For example:
Smooth the following image with Length == 3
X   X 
            XXXXXXXXXX 
Favoring short would remove the two "bumps" giving:
XXXXXXXXXX
Favoring long would fill in the "gap" giving:
XXXXX 
            XXXXXXXXXX 
Remarks

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

Requirements

Target Platforms

Help Version 23.0.2024.3.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.