---
title: "Flip"
canonical: https://www.graphicsmill.com/samples/Transforms/RotateAndFlip/Flip_cs
product: "Graphics Mill"
source: "Transforms/RotateAndFlip/Flip.cs"
---

# Flip

Flips image.

## Instruction

Flip the image vertically and save the result to a new file.

## Usings

```csharp
using Aurigma.GraphicsMill.Transforms;
```

## Code Snippet

```csharp
using (var bitmap = new Bitmap("Chicago.jpg"))
{
    bitmap.Transforms.Flip(FlipType.Vertical);
    bitmap.Save("Flip.jpg");
}
```

## Explanation

The code:

- Reads the image from file using the Bitmap constructor.
- Applies the "Flip" transform with the FlipType.Vertical option to flip the image vertically.
- Saves the flipped image to a new file, "Flip.jpg".

## 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

- [Flip.jpg](<https://www.graphicsmill.com/samples/Transforms/compiled/Debug/Flip_jpg>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Bitmap.Transforms](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_Transforms.htm.md>)
- [Aurigma.GraphicsMill.Transforms.FlipType](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_FlipType.htm.md>)
- [Aurigma.GraphicsMill.TransformsProvider.Flip(FlipType)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_TransformsProvider_Flip_1_e191919c.htm.md>)
