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

AddNoise Constructor (Boolean[], Single, DistributionKind, Boolean, Int32)

Creates new AddNoise class instance. You can specify all the transform parameters here (noise amount, distribution kind, seed, if it should be gray, and channels to apply transform at).

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

Syntax

Visual Basic
Public Sub New ( _
	channels As Boolean(), _
	amount As Single, _
	distributionKind As DistributionKind, _
	grayNoise As Boolean, _
	seed As Integer _
)
C#
public AddNoise(
	bool[] channels,
	float amount,
	DistributionKind distributionKind,
	bool grayNoise,
	int seed
)

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. You can change to this array later through the property Channels.
amount

Type: System.Single

Noise amount value varying in range [-1, 1]. You can change this value later through property Amount.
distributionKind

Type: Aurigma.GraphicsMill.Transforms.DistributionKind

A member of DistributionKind enumeration specifying noise distribution law. You can change this value later through property DistributionKind.
grayNoise

Type: System.Boolean

A value specifying if to generate gray or color noise. You can change this value later through property GrayNoise.
seed

Type: System.Int32

An integer value specifying seed for random generator. You can change this value later through property Seed.

See Also

Reference