---
title: "Spray Constructor (Int32, Single, FadeType, Int32, Color)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Spray_ctor_5_708ce48e.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/)

# Spray Constructor (Int32, Single, FadeType, Int32, Color)
 
Creates and initializes new [Spray](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Spray.htm.md) class instance. You can set all spray parameters here.
 
**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 Integer, _frameWidth As Single, _fadeType As FadeType, _seed As Integer, _backgroundColor As Color _
)
```
 
```csharp
public 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). You can change this value later using [Amount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Spray_Amount.htm.md) property.

 - frameWidth
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Width of the frame for which the effect should be applied. You can change this value later using [FrameWidth](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Spray_FrameWidth.htm.md) property.

 - 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. You can change this value later using [FadeType](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Spray_FadeType.htm.md) property.

 - seed
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An integer value specifying seed for random generator. You can change this value later using [Seed](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Spray_Seed.htm.md) property (or reinitialize it with [Randomize()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Spray_Randomize.htm.md) method).

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Default value is a transparent white. You can change this value later using [BackgroundColor](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Spray_BackgroundColor.htm.md) property.
   
## See Also

### Reference

- [Spray Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Spray.htm.md)
- [Spray Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Spray_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
