xtd 0.2.0
Loading...
Searching...
No Matches

◆ save() [3/3]

void xtd::drawing::image::save ( std::ostream &  stream,
const xtd::drawing::imaging::image_format format 
) const

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

Parameters
streamThe std::otream where the image will be saved.
formatThe xtd::drawing::imaging::image_format for this xtd::drawing::image.
Remarks
You should avoid saving an image to the same stream that was used to construct it. Doing so might damage the stream.
The image must be saved to the stream at an offset of zero. If any additional data has been written to the stream before saving the image, the image data in the stream will be corrupted.