## Save(string) {#save_2}

Saves this Image to the specified file or stream.

```csharp
public void Save(string filename)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filename | String | A string that contains the name of the file to which to save this Image. |

### See Also

* class [Image](../)
* namespace [Aspose.Drawing](../../image/)
* assembly [Aspose.Drawing.Common](../../../)

---

## Save(string, ImageFormat) {#save_4}

Saves this Image to the specified file in the specified format.

```csharp
public void Save(string filename, ImageFormat format)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filename | String | A string that contains the name of the file to which to save this Image. |
| format | ImageFormat | The ImageFormat for this Image. |

### See Also

* class [ImageFormat](../../../aspose.drawing.imaging/imageformat/)
* class [Image](../)
* namespace [Aspose.Drawing](../../image/)
* assembly [Aspose.Drawing.Common](../../../)

---

## Save(string, ImageCodecInfo, EncoderParameters) {#save_3}

Saves this Image to the specified file, with the specified encoder and image-encoder parameters.

```csharp
public void Save(string filename, ImageCodecInfo encoder, EncoderParameters encoderParams)
```

| Parameter | Type | Description |
| --- | --- | --- |
| filename | String | A string that contains the name of the file to which to save this Image. |
| encoder | ImageCodecInfo | The ImageCodecInfo for this Image. |
| encoderParams | EncoderParameters | An EncoderParameters to use for this Image. |

### See Also

* class [ImageCodecInfo](../../../aspose.drawing.imaging/imagecodecinfo/)
* class [EncoderParameters](../../../aspose.drawing.imaging/encoderparameters/)
* class [Image](../)
* namespace [Aspose.Drawing](../../image/)
* assembly [Aspose.Drawing.Common](../../../)

---

## Save(Stream, ImageFormat) {#save_1}

Saves this image to the specified stream in the specified format.

```csharp
public void Save(Stream stream, ImageFormat format)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The Stream where the image will be saved. |
| format | ImageFormat | An ImageFormat that specifies the format of the saved image. |

### See Also

* class [ImageFormat](../../../aspose.drawing.imaging/imageformat/)
* class [Image](../)
* namespace [Aspose.Drawing](../../image/)
* assembly [Aspose.Drawing.Common](../../../)

---

## Save(Stream, ImageCodecInfo, EncoderParameters) {#save}

Saves this image to the specified stream, with the specified encoder and image encoder parameters.

```csharp
public void Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The Stream where the image will be saved. |
| encoder | ImageCodecInfo | The ImageCodecInfo for this Image. |
| encoderParams | EncoderParameters | An EncoderParameters that specifies parameters used by the image encoder. |

### See Also

* class [ImageCodecInfo](../../../aspose.drawing.imaging/imagecodecinfo/)
* class [EncoderParameters](../../../aspose.drawing.imaging/encoderparameters/)
* class [Image](../)
* namespace [Aspose.Drawing](../../image/)
* assembly [Aspose.Drawing.Common](../../../)


