---
title: "Bitmap..::.Save Method (String, IEncoderOptions)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Save_2_b73a8298.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Bitmap.Save Method (String, IEncoderOptions)
 
Saves the bitmap into specified file.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Save ( _fileName As String, _options As IEncoderOptions _
)
```
 
```csharp
public void Save(string fileName,IEncoderOptions options
)
```
 
### Parameters
 
 - fileName
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
The name of the target file.

 - options
     - Type: [Aurigma.GraphicsMill.Codecs.IEncoderOptions](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_IEncoderOptions.htm.md)
An object containing encoder settings.
 
## Remarks
  
This method determines from encoder options (regardless to the file extension).
 
Using this method is the same as creating appropriate writer derived from [FormatWriter](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_FormatWriter.htm.md) and running it in synchronous mode.
 
## Examples
  
```
bitmap.Save("c:\result.jpg", New Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, True))
```
 
```csharp
bitmap.Save(@"c:\result.jpg", new Aurigma.GraphicsMill.Codecs.JpegEncoderOptions(70, true));
```
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Save Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Bitmap_Save.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
