---
title: "Contrast..::.CalculateAutoParameters Method (BitmapData, 
            Lut
          %)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Contrast_CalculateAutoParameters_2_3b856cc0.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 (BitmapData, 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 ( _bitmapData As BitmapData, _<OutAttribute> ByRef lut As Lut _
)
```
 
```csharp
public static void CalculateAutoParameters(BitmapData bitmapData,out Lut lut
)
```
 
### Parameters
 
 - bitmapData
     - Type: [Aurigma.GraphicsMill.BitmapData](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_BitmapData.htm.md)
 [BitmapData](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_BitmapData.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)
