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

Applies a noise effect to the bitmap using the specified settings.

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

Syntax

C#
public void AddNoise(
	float amount,
	DistributionKind distributionKind,
	bool grayNoise,
	int seed
)

Parameters

amount

Type: System.Single

The strength of noise in range [-1, 1]. If 0, no noise added.
distributionKind

Type: Aurigma.GraphicsMill.Transforms.DistributionKind

A DistributionKind specifying noise distribution law.
grayNoise

Type: System.Boolean

true if the noise is gray; otherwise, false.
seed

Type: System.Int32

The seed for the noise random generator.

Remarks

This method transforms an image by adding a random number to each pixel.

See Also

Reference