---
title: "Minimum"
canonical: https://www.graphicsmill.com/samples/Transforms/MinimumMaximumMedian/Minimum_cs
product: "Graphics Mill"
source: "Transforms/MinimumMaximumMedian/Minimum.cs"
---

# Minimum

Applies the Minimum transform to the image.

## Instruction

Apply the "Minimum" transform to the image using the specified parameter of 3.

## Code Snippet

```csharp
using (var bitmap = new Bitmap("Chicago.jpg"))
{
    bitmap.Transforms.Minimum(3);

    bitmap.Save("Minimum.jpg");
}
```

## Explanation

The code:

- Uses the Bitmap class to load an image.
- Applies the "Minimum" transform with a parameter value of 3 to the image.
- Saves the transformed image to a file.

## Tags

- [Bitmap](<https://www.graphicsmill.com/samples/tags/bitmap_md>): Working with images via the Bitmap API
- [Transform](<https://www.graphicsmill.com/samples/tags/transform_md>): Image transforms and effects

## Input

- [Chicago.jpg](<https://www.graphicsmill.com/samples/Transforms/compiled/Debug/Chicago_jpg>) (preview)

## Output

- [Minimum.jpg](<https://www.graphicsmill.com/samples/Transforms/compiled/Debug/Minimum_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Bitmap.Transforms](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_Transforms.htm.md>)
- [Aurigma.GraphicsMill.TransformsProvider.Minimum(Int32)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_Minimum_1_e1836fc4.htm.md>)
