This documentation is for the old version. Go to the latest Graphics Mill docs

TransformsProvider.UnsharpMask Method (Single, Single, Single)

Enhances image sharpness using unsharp mask technique.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub UnsharpMask ( _
	amount As Single, _
	radius As Single, _
	threshold As Single _
)
C#
public void UnsharpMask(
	float amount,
	float radius,
	float threshold
)

Parameters

amount

Type: System.Single

Value that specifies unsharp mask amount.
radius

Type: System.Single

Value that specifies blur radius used to produce unfocused version of the image.
threshold

Type: System.Single

Value in range [0, 1] specifying threshold value for the unsharp mask. Minimum value (0) means that all pixels are affected with unsharp mask, maximum value means that no pixels are affected. To calculate threshold in pixel luminosity levels, multiply it on 255 for non-extended (8 bit per channel) images, or 65535 for extended (16 bit per channel) images.

Remarks

You can also use UnsharpMask class to apply this effect.

Examples

Visual Basic
'Sharpen image via unsharp mask
bitmap.Transforms.UnsharpMask(1.5, 2.1, 0.04)
C#
//Sharpen image via unsharp mask
bitmap.Transforms.UnsharpMask(1.5f, 2.1f, 0.04f);

See Also

Reference