---
title: "TransformsProvider..::.AddNoise Method (Single, DistributionKind, Boolean, Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_AddNoise_4_24f432d2.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/)

# TransformsProvider.AddNoise Method (Single, DistributionKind, Boolean, Int32)
 
Puts an additive noise on the image by adding random number to each pixel.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub AddNoise ( _amount As Single, _distributionKind As DistributionKind, _grayNoise As Boolean, _seed As Integer _
)
```
 
```csharp
public void AddNoise(float amount,DistributionKind distributionKind,bool grayNoise,int seed
)
```
 
### Parameters
 
 - amount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Noise amount value varying in range [-1, 1].

 - 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.

 - grayNoise
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
A value specifying if to generate gray or color noise.

 - seed
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An integer value specifying seed for random generator.
 
## Remarks
 You can also use [AddNoise](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_AddNoise.htm.md) class to apply this effect.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [AddNoise Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_AddNoise.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
