---
title: "Lut..::.BuildFromGamma Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Lut_BuildFromGamma_2_6c54b22f.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/)

# Lut.BuildFromGamma Method 
 
Builds a LUT which makes the gamma correction.
 
**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 BuildFromGamma ( _gamma As Single, _extended As Boolean _
)
```
 
```csharp
public void BuildFromGamma(float gamma,bool extended
)
```
 
### Parameters
 
 - gamma
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Gamma value (typically in range [1, 3]).

 - extended
     - Type: [System.Boolean](http://msdn2.microsoft.com/en-us/a28wyd50)
Value that specifies if LUTshould be build for extended (16 bits per channel) or non-extended (8 bits per channel) bitmaps. If it is **true**, LUT entries number is 65536 and maximum value is 65535, otherwise entries number is 256 and maximum value is 255.
   
## See Also

### Reference

- [Lut Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Lut.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
