## XImage::Save(const System::SharedPtr\<System::IO::Stream\>\&) method


Saves image data into stream as JPEG image.

```cpp
void Aspose::Pdf::XImage::Save(const System::SharedPtr<System::IO::Stream> &stream)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | const System::SharedPtr\<System::IO::Stream\>\& | Stream where image data will be saved. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [XImage](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImage::Save(const System::SharedPtr\<System::IO::Stream\>\&, const System::SharedPtr\<System::Drawing::Imaging::ImageFormat\>\&) method


Saves image into stream with requested format.

```cpp
void Aspose::Pdf::XImage::Save(const System::SharedPtr<System::IO::Stream> &stream, const System::SharedPtr<System::Drawing::Imaging::ImageFormat> &format)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | const System::SharedPtr\<System::IO::Stream\>\& | Stream where image will be saved |
| format | const System::SharedPtr\<System::Drawing::Imaging::ImageFormat\>\& | Format which will be used for image enconding. [ImageFormat](../) |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [ImageFormat](../../../system.drawing.imaging/imageformat/)
* Class [XImage](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImage::Save(const System::SharedPtr\<System::IO::Stream\>\&, const System::SharedPtr\<System::Drawing::Imaging::ImageFormat\>\&, int32_t) method


Saves image into stream with requested format with specified resolution.

```cpp
void Aspose::Pdf::XImage::Save(const System::SharedPtr<System::IO::Stream> &stream, const System::SharedPtr<System::Drawing::Imaging::ImageFormat> &format, int32_t resolution)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | const System::SharedPtr\<System::IO::Stream\>\& | Stream where image will be saved |
| format | const System::SharedPtr\<System::Drawing::Imaging::ImageFormat\>\& | Format which will be used for image enconding. [ImageFormat](../) |
| resolution | int32_t | [Image](../../image/) resolution |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [ImageFormat](../../../system.drawing.imaging/imageformat/)
* Class [XImage](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
## XImage::Save(const System::SharedPtr\<System::IO::Stream\>\&, int32_t) method


Saves image data into stream as JPEG image with specified resolution.

```cpp
void Aspose::Pdf::XImage::Save(const System::SharedPtr<System::IO::Stream> &stream, int32_t resolution)
```


| Parameter | Type | Description |
| --- | --- | --- |
| stream | const System::SharedPtr\<System::IO::Stream\>\& | Stream where image data will be saved. |
| resolution | int32_t | [Image](../../image/) resolution |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Stream](../../../system.io/stream/)
* Class [XImage](../)
* Namespace [Aspose::Pdf](../../)
* Library [Aspose.PDF for C++](../../../)
