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

TransformsProvider.AddNoise Method (Single, DistributionKind, Boolean)

Puts an additive noise on the image by adding random number to each pixel.

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

Syntax

Visual Basic
Public Sub AddNoise ( _
	amount As Single, _
	distributionKind As DistributionKind, _
	grayNoise As Boolean _
)
C#
public void AddNoise(
	float amount,
	DistributionKind distributionKind,
	bool grayNoise
)

Parameters

amount

Type: System.Single

Noise amount value varying in range [-1, 1].
distributionKind

Type: Aurigma.GraphicsMill.Transforms.DistributionKind

A member of DistributionKind enumeration specifying noise distribution law.
grayNoise

Type: System.Boolean

A value specifying if to generate gray or color noise.

Remarks

You can also use AddNoise class to apply this effect.

See Also

Reference