---
title: "Brightness"
canonical: https://www.graphicsmill.com/samples/Transforms/BrightnessAndContrast/Brightness_cs
product: "Graphics Mill"
source: "Transforms/BrightnessAndContrast/Brightness.cs"
---

# Brightness

Adjusts brightness.

## Instruction

Adjust the brightness of an image with a specific factor.

## Code Snippet

```csharp
using (var bitmap = new Bitmap("Chicago.jpg"))
{
    bitmap.ColorAdjustment.Brightness(0.1f);

    bitmap.Save("Brightness.jpg");
}
```

## Explanation

The code:

- Applies a brightness adjustment with a factor of `0.1f` to the image.
- Saves the modified image with the adjusted brightness.

## 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

- [Brightness.jpg](<https://www.graphicsmill.com/samples/Transforms/compiled/Debug/Brightness_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Bitmap.ColorAdjustment](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_ColorAdjustment.htm.md>)
- [Aurigma.GraphicsMill.ColorAdjustmentProvider.Brightness(Single)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ColorAdjustmentProvider_Brightness_1_7a94462e.htm.md>)
