---
title: "Contrast..::.CalculateAutoParameters Method (Bitmap, 
            Lut
          %)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Contrast_CalculateAutoParameters_2_8cdd9470.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.CalculateAutoParameters Method (Bitmap, Lut %)
 
Returns contrast modifier value which the class would apply in automatic mode.
 
**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 Shared Sub CalculateAutoParameters ( _bitmap As Bitmap, _<OutAttribute> ByRef lut As Lut _
)
```
 
```csharp
public static void CalculateAutoParameters(Bitmap bitmap,out Lut lut
)
```
 
### Parameters
 
 - bitmap
     - Type: [Aurigma.GraphicsMill.Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance for which the contrast modifier is calculated automatically.

 - lut
     - Type: [Aurigma.GraphicsMill.Transforms.Lut](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Lut.htm.md) %
Out parameter. LUT which represents this contrast modification will be written into this parameter.
   
## See Also

### Reference

- [Contrast Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Contrast.htm.md)
- [CalculateAutoParameters Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Contrast_CalculateAutoParameters.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
