---
title: "Lut..::.BuildFromArray Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Lut_BuildFromArray_1_a56295c4.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.BuildFromArray Method 
 
Builds a LUT from specified array.
 
**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 BuildFromArray ( _array As Integer() _
)
```
 
```csharp
public void BuildFromArray(int[] array
)
```
 
### Parameters
 
 - array
     - Type:  [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d) []
An array containing LUT entries. If this array contains 256 elements, LUT considered as non-extended. If array contains 65536 elements, LUT is extended. All other array length values are incorrect.
 
## Remarks
 Method checks if LUT entries are in proper range (from 0 to maximum luminosity value). If it finds out that some entry exceeds this range, exception is thrown.
   
## 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)
