---
title: "Brightness..::.CalculateAutoParameters Method (Bitmap, 
            Single
          %, 
            Lut
          %)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Brightness_CalculateAutoParameters_3_fa18152b.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/)

# Brightness.CalculateAutoParameters Method (Bitmap, Single %, Lut %)
 
Returns brightness 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 amount As Single, _<OutAttribute> ByRef lut As Lut _
)
```
 
```csharp
public static void CalculateAutoParameters(Bitmap bitmap,out float amount,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 brightness modifier is calculated automatically.

 - amount
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f) %
Out parameter. Value which contains brightness modifier which would be used automatically will be written into this parameter.

 - 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 brightness modification will be written into this parameter.
   
## See Also

### Reference

- [Brightness Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Brightness.htm.md)
- [CalculateAutoParameters Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Transforms_Brightness_CalculateAutoParameters.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
