LEADTOOLS Image Processing (Leadtools.ImageProcessing.Core assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SmoothCommandFlags Enumeration
See Also  
Leadtools.ImageProcessing.Core Namespace : SmoothCommandFlags Enumeration



Enumerated values that determine the behavior of the smoothing process.

Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
<FlagsAttribute()>
Public Enum SmoothCommandFlags 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As SmoothCommandFlags
C# 
[FlagsAttribute()]
public enum SmoothCommandFlags : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
[FlagsAttribute()]
public enum class SmoothCommandFlags : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
FavorLongProcesses 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 SmoothCommand.Length == 3
              X   X
            XXXXXXXXXX
            
Favoring short would remove the two "bumps" giving:
            XXXXXXXXXX
            
Favoring long would fill in the "gap" giving:
              XXXXX
            XXXXXXXXXX
            
ImageUnchangedThe affected image (Run method image) is unchanged.
LeadRegionWhen SmoothCommand returns, SmoothCommand.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.
NoneNo flags.
SingleRegionFor each bump or nick found by the SmoothCommand, if the SmoothCommandEventArgs.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 SmoothCommand.ImageRegion or SmoothCommand.Region will reference a region that contains all the removed bumps or nicks. If LeadRegion is also set, SmoothCommand.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, SmoothCommand.Region is updated with a LEADTOOLS 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 SmoothCommand.ImageRegion or SmoothCommand.Region).

Remarks

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

Inheritance Hierarchy

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

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also