---
title: "TransformsProvider.Spray Method (Int32, Int32, FadeType, Int32, Color)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_Spray_5_a581c9f0.htm
product: "Graphics Mill"
---

# TransformsProvider.Spray Method (Int32, Int32, FadeType, Int32, Color)
 
Applies a spray effect to the bitmap using the specified settings.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void Spray(int amount,int frameWidth,FadeType fadeType,int seed,Color backgroundColor
)
```
 
### Parameters
 
 - amount
     - Type: System.Int32
The amount of the effect (variance of the random number generated by the transform).

 - frameWidth
     - Type: System.Int32
The width of the frame.

 - fadeType
     - Type: [Aurigma.GraphicsMill.Transforms.FadeType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md)
A [FadeType](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md) that specifies fade type for the spray effect.

 - seed
     - Type: System.Int32
Te seed for random generator.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Color.htm.md)
 
## Remarks
 Spray effect lies in spreading pixels randomly.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Spray Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_TransformsProvider_Spray.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
