---
title: "Lut..::.BuildFromSpline Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Transforms_Lut_BuildFromSpline_2_77a5e52f.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.BuildFromSpline Method 
 
Builds LUT defined as a curve which passes specified set of points.
 
**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 BuildFromSpline ( _points As PointF(), _extended As Boolean _
)
```
 
```csharp
public void BuildFromSpline(PointF[] points,bool extended
)
```
 
### Parameters
 
 - points
     - Type:  [System.Drawing.PointF](http://msdn2.microsoft.com/en-us/ckys1c1e) []
Array of curve points. Coordinates are normalized on maximum possible luminosity value, i.e. you specify values in range [0, 1] and they are stretched either to [0, 255] or [0, 65535] depending on *extended* property value. Note, you still can specify values that are out of [0, 1] range, and algorithm automatically truncates the curve. If all points will be strictly inside of this range, algorithm will add points at: 
- x equal to 0 and y equal to Y-coordinate of the leftmost point.
- x equal to 1 and y equal to Y-coordinate of the rightmost point.

 - 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)
