---
title: "LosslessJpeg.WriteRotated Method (String, RotateFlipType)"
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_LosslessJpeg_WriteRotated_2_ed07628a.htm
product: "Graphics Mill"
---

# LosslessJpeg.WriteRotated Method (String, RotateFlipType)
 
Rotates and/or flips the image and writes the result to the specified file.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public void WriteRotated(string fileName,RotateFlipType transform
)
```
 
### Parameters
 
 - fileName
     - Type: System.String
The name of the file to save the result.

 - transform
     - Type: System.Drawing.RotateFlipType
A RotateFlipType specifying how much an image is rotated and the axis used to flip the image.
 
## Examples
  
```csharp
using (var losslessJpeg = new LosslessJpeg(@"Images\in.jpg"))
{
    losslessJpeg.WriteRotated(@"Images\Output\out.jpg", System.Drawing.RotateFlipType.Rotate90FlipNone);
}
```
 
```csharp
using (var losslessJpeg = new LosslessJpeg(@"Images\in.jpg"))
{
    losslessJpeg.WriteRotated(@"Images\out.jpg", System.Drawing.RotateFlipType.RotateNoneFlipX);
}
```
   
## See Also

### Reference

- [LosslessJpeg Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_LosslessJpeg.htm.md)
- [WriteRotated Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Codecs_LosslessJpeg_WriteRotated.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)

### Manual

- [Applying Lossless JPEG Transforms](https://www.graphicsmill.com/docs/gm/applying-lossless-jpeg-transforms.htm.md)
