---
title: "Lut..::.BuildStaircase Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Lut_BuildStaircase_2_2ffe03ff.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.BuildStaircase Method 
 
Builds a LUT from a staircase function with a given number of steps.
 
**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 BuildStaircase ( _steps As Integer, _extended As Boolean _
)
```
 
```csharp
public void BuildStaircase(int steps,bool extended
)
```
 
### Parameters
 
 - steps
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number of the staircase function steps. Minimum value is 0 (single horizontal line will be produced).

 - 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.
 
## Remarks
 Using staircase function you can apply a posterize effect.
   
## 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)
