GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / FxUnsharpMask Method
GdPicture image identifier.
Radius of Edges to become after the effect is applies. It controls how wide they get after the filter is applied. Radius and Amount interact, reducing one, allows more of the other. Minimum Value of Radius should be 3 or more to allow for enough pixels surrounding the edge to be investigated. If value passed less than 3 is passed it will be ammended automatically to 3. Proper value is 5. Value >= 3.
Amount of Contrast to be added to areas of edges where filter will be applies. It controls how much darker and how much brighter the edges become. Proper value is 0.5, Value between 0.0-5.0.
It controls the amount of edges to be sharpened. Smaller values sharpen more, higher values exclude the subtle edges from being sharpened. Proper value is 40. Value between 0-255.





In This Topic
FxUnsharpMask Method (GdPictureImaging)
In This Topic
Performs an Unsharp Mask effect which is a Sharpen effect via subtracting a Gaussian mask of the image, on a GdPicture image or on an area of a GdPicture image defined by SetROI() method.
Syntax
'Declaration
 
Public Function FxUnsharpMask( _
   ByVal ImageID As Integer, _
   ByVal Radius As Integer, _
   ByVal Amount As Double, _
   ByVal Threshold As Integer _
) As GdPictureStatus
public GdPictureStatus FxUnsharpMask( 
   int ImageID,
   int Radius,
   double Amount,
   int Threshold
)
public function FxUnsharpMask( 
    ImageID: Integer;
    Radius: Integer;
    Amount: Double;
    Threshold: Integer
): GdPictureStatus; 
public function FxUnsharpMask( 
   ImageID : int,
   Radius : int,
   Amount : double,
   Threshold : int
) : GdPictureStatus;
public: GdPictureStatus FxUnsharpMask( 
   int ImageID,
   int Radius,
   double Amount,
   int Threshold
) 
public:
GdPictureStatus FxUnsharpMask( 
   int ImageID,
   int Radius,
   double Amount,
   int Threshold
) 

Parameters

ImageID
GdPicture image identifier.
Radius
Radius of Edges to become after the effect is applies. It controls how wide they get after the filter is applied. Radius and Amount interact, reducing one, allows more of the other. Minimum Value of Radius should be 3 or more to allow for enough pixels surrounding the edge to be investigated. If value passed less than 3 is passed it will be ammended automatically to 3. Proper value is 5. Value >= 3.
Amount
Amount of Contrast to be added to areas of edges where filter will be applies. It controls how much darker and how much brighter the edges become. Proper value is 0.5, Value between 0.0-5.0.
Threshold
It controls the amount of edges to be sharpened. Smaller values sharpen more, higher values exclude the subtle edges from being sharpened. Proper value is 40. Value between 0-255.

Return Value

A member of the GdPictureStatus enumeration.
Remarks
This method is used in the "Document Clean Up" C# Demo.
See Also