---
title: "Spray Constructor (Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Spray_ctor_1_25c8efd2.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)
 
Creates and initializes new [Spray](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Spray.htm.md) class instance. You can set spray amount 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 _
)
```
 
```csharp
public Spray(int amount
)
```
 
### 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.
   
## 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)
