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

TransformsProvider.AddNoise Method (Single, DistributionKind, Boolean, Int32)

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, _
	seed As Integer _
)
C#
public void AddNoise(
	float amount,
	DistributionKind distributionKind,
	bool grayNoise,
	int seed
)

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.
seed

Type: System.Int32

An integer value specifying seed for random generator.

Remarks

You can also use AddNoise class to apply this effect.

See Also

Reference