CanvasBitmapSaveAsync Method (IRandomAccessStream, CanvasBitmapFileFormat) |
Namespace: Microsoft.Graphics.Canvas
public IAsyncAction SaveAsync( IRandomAccessStream stream, CanvasBitmapFileFormat fileFormat )
The stream must be writeable. CanvasBitmapFileFormat.Auto is not allowed with this method.
To save image data using a high dynamic range (HDR) pixel format, use JpegXR format and provide a bitmap using one of the pixel formats: