---
title: "ColorAdjustmentProvider..::.Contrast Method (Single)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_Contrast_1_7a94462e.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/)

# ColorAdjustmentProvider.Contrast Method (Single)
 
Adjusts image contrast.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Contrast ( _amount As Single _
)
```
 
```csharp
public void Contrast(float amount
)
```
 
### Parameters
 
 - amount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [-1, 1] that specifies contrast modifier.
 
## Remarks
  
You can also use [Contrast](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Contrast.htm.md) class to apply this correction.
 
Parameter *amount* is normalized to 1. Depending on pixel format it is scaled to 255 or 65355 inside of the method.
 
## Examples
  
```
bitmap.ColorAdjustment.Contrast(0.2F)
```
 
```csharp
bitmap.ColorAdjustment.Contrast(0.2F);
```
   
## See Also

### Reference

- [ColorAdjustmentProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorAdjustmentProvider.htm.md)
- [Contrast Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ColorAdjustmentProvider_Contrast.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
