---
title: "TransformsProvider..::.Spray Method (Int32, Single, FadeType, Int32, Color)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Spray_5_d94c42a8.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.Spray Method (Int32, Single, FadeType, Int32, Color)
 
Applies spray effect on the image.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Spray ( _amount As Integer, _frameWidth As Single, _fadeType As FadeType, _seed As Integer, _backgroundColor As Color _
)
```
 
```csharp
public void Spray(int amount,float frameWidth,FadeType fadeType,int seed,Color backgroundColor
)
```
 
### Parameters
 
 - amount
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Value specifying the amount of the effect (variance of the random number generated by the transform).

 - frameWidth
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Width of the frame for which the effect should be applied.

 - fadeType
     - Type: [Aurigma.GraphicsMill.Transforms.FadeType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md)
 [FadeType](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_FadeType.htm.md) value that specifies fade type for the spray effect.

 - seed
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An integer value specifying seed for random generator.

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Default value is a transparent white.
 
## Remarks
 You can also use [Spray](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Spray.htm.md) class to apply this effect.
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Spray Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Spray.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
