---
title: "AddNoise Constructor (Single, DistributionKind, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_AddNoise_ctor_3_c3ae39a7.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 (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, and if it should be gray). Transform will be applied to all channels of the bitmap.
 
**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 ( _amount As Single, _distributionKind As DistributionKind, _grayNoise As Boolean _
)
```
 
```csharp
public AddNoise(float amount,DistributionKind distributionKind,bool grayNoise
)
```
 
### Parameters
 
 - 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)
