---
title: "JpegWriter.Close Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_JpegWriter_Close.htm
product: "Graphics Mill"
---

# JpegWriter.Close Method 
 
Closes the writer, flushes all unsaved data, and detaches the it from the opened file (or other media).
 
**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 override sealed void Close()
```
 
## Remarks
  
If you close the writer which has not been opened, the method does nothing. So you need not do any checks to ensure if writer is opened to close it.
   
## See Also

### Reference

- [JpegWriter Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_JpegWriter.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
