---
title: "AddNoise Constructor (array&lt;Boolean&gt;[]()[], Single, DistributionKind, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_AddNoise_ctor_4_5810ce44.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# AddNoise Constructor (Boolean[], Single, DistributionKind, Boolean)
 
Creates new [AddNoise](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_AddNoise.htm.md) class instance. You can specify all the transform parameters here (noise amount, distribution kind, if it should be gray, and channels to apply transform at).
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub New ( _channels As Boolean(), _amount As Single, _distributionKind As DistributionKind, _grayNoise As Boolean _
)
```
 
```csharp
public AddNoise(bool[] channels,float amount,DistributionKind distributionKind,bool grayNoise
)
```
 
### Parameters
 
 - channels
     - Type:  [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) []
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](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_PerChannelBitmapTransform_Channels.htm.md).

 - amount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Noise amount value varying in range [-1, 1]. You can change this value later through property [Amount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_AddNoise_Amount.htm.md).

 - distributionKind
     - Type: [Aurigma.GraphicsMill.Transforms.DistributionKind](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_DistributionKind.htm.md)
A member of [DistributionKind](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_DistributionKind.htm.md) enumeration specifying noise distribution law. You can change this value later through property [DistributionKind](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_AddNoise_DistributionKind.htm.md).

 - grayNoise
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
A value specifying if to generate gray or color noise. You can change this value later through property [GrayNoise](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_AddNoise_GrayNoise.htm.md).
   
## See Also

### Reference

- [AddNoise Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_AddNoise.htm.md)
- [AddNoise Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_AddNoise_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
