---
title: "Apply LUT"
canonical: https://www.graphicsmill.com/samples/Transforms/AdvancedToneCorrection/ApplyLut_cs
product: "Graphics Mill"
source: "Transforms/AdvancedToneCorrection/ApplyLut.cs"
---

# Apply LUT

Applies LUT (look-up table) correction.

## Instruction

Apply a custom LUT (Look-Up Table) to an image for color adjustment.

## Usings

```csharp
using Aurigma.GraphicsMill.Transforms;
```

## Code Snippet

```csharp
using (var bitmap = new Bitmap("Chicago.jpg"))
using (var lut = new Lut())
{
    lut.SetPoint(50, 70);
    lut.SetPoint(100, 150);
    lut.InterpolationMode = LutInterpolationMode.Cubic;

    bitmap.ColorAdjustment.ApplyLut(lut);

    bitmap.Save("ApplyLut.jpg");
}
```

## Explanation

The code:

- Creates a LUT and sets specific points for the color mapping (50 -> 70, 100 -> 150).
- Uses cubic interpolation for smoother transitions between points.
- Applies the LUT to the image's color adjustment using `ApplyLut`.
- Saves the color-adjusted image to an output file.

## Tags

- [Bitmap](<https://www.graphicsmill.com/samples/tags/bitmap_md>): Working with images via the Bitmap API
- [Color Adjustment](<https://www.graphicsmill.com/samples/tags/color-adjustment_md>): Adjusting brightness, contrast and color

## Input

- [Chicago.jpg](<https://www.graphicsmill.com/samples/Transforms/compiled/Debug/Chicago_jpg>) (preview)

## Output

- [ApplyLut.jpg](<https://www.graphicsmill.com/samples/Transforms/compiled/Debug/ApplyLut_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Bitmap.ColorAdjustment](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_ColorAdjustment.htm.md>)
- [Aurigma.GraphicsMill.ColorAdjustmentProvider.ApplyLut(Lut)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_ApplyLut_1_2560944e.htm.md>)
- [Aurigma.GraphicsMill.Transforms.Lut](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Lut.htm.md>)
- [Aurigma.GraphicsMill.Transforms.Lut.InterpolationMode](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Lut_InterpolationMode.htm.md>)
- [Aurigma.GraphicsMill.Transforms.Lut.SetPoint(Int32,Int32)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Transforms_Lut_SetPoint_2_22dcb54d.htm.md>)
- [Aurigma.GraphicsMill.Transforms.LutInterpolationMode](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_LutInterpolationMode.htm.md>)
