---
title: "Contrast Constructor (Single)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Transforms_Contrast_ctor_1_7058bf00.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/)

# Contrast Constructor (Single)
 
Creates new [Contrast](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Contrast.htm.md) class instance. Here you can specify a contrast modifier.
 
**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 Single _
)
```
 
```csharp
public Contrast(float amount
)
```
 
### Parameters
 
 - amount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Contrast modifier value varying in range [-1, 1]. Minimum value (-1) will produce absolutely gray image, neutral value (0) does no effect, maximum value (1) makes the image extremely posterized. You can change this value later through property [Amount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_Contrast_Amount.htm.md).
   
## See Also

### Reference

- [Contrast Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Contrast.htm.md)
- [Contrast Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Contrast_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
