Class UnsharpMaskSettings
Defines settings for an Unsharp Masking operation.
Inheritance
Namespace: PhotoSauce.MagicScaler
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class UnsharpMaskSettings : ValueType
Remarks
These settings are designed to function similarly to the Unsharp Mask settings in Photoshop.
Constructors
UnsharpMaskSettings(Int32, Double, Byte)
Constructs a new UnsharpMaskSettings instance with the specified values.
Declaration
public UnsharpMaskSettings(int amount, double radius, byte threshold)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | amount | The amount of sharpening. |
System.Double | radius | The blur radius. |
System.Byte | threshold | The minimum change required for a pixel to be filtered. |
Fields
None
No sharpening.
Declaration
public static readonly UnsharpMaskSettings None
Field Value
Type | Description |
---|---|
UnsharpMaskSettings |
Properties
Amount
The amount of sharpening. This value represents a percentage of the difference between the blurred image and the original image.
Declaration
public int Amount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Typical values are between |
Radius
The radius (sigma) of the gaussian blur used for the mask. This value determines the size of details that are sharpened.
Declaration
public double Radius { get; }
Property Value
Type | Description |
---|---|
System.Double | Typical values are between |
Threshold
The minimum brightness change required for a pixel to be modified by the filter.
Declaration
public byte Threshold { get; }
Property Value
Type | Description |
---|---|
System.Byte | Typical values are between |