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

TransformsProvider.AddNoise Method (Boolean[], 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 ( _
	channels As Boolean(), _
	amount As Single, _
	distributionKind As DistributionKind, _
	grayNoise As Boolean _
)
C#
public void AddNoise(
	bool[] channels,
	float amount,
	DistributionKind distributionKind,
	bool grayNoise
)

Parameters

channels

Type: System.Boolean []

Array of flags specifying what channels to apply effect at. If array item is true, transform will be applied at channel with appropriate index. Otherwise this channel is skipped.
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