CanvasBitmapSaveAsync Method (String) |
Saves the entire bitmap to a file with the specified file name, using a default quality level of 0.9 and CanvasBitmapFileFormat.Auto.
Namespace:
Microsoft.Graphics.Canvas
Assembly:
Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax public IAsyncAction SaveAsync(
string fileName
)
Parameters
- fileName
- Type: SystemString
Return Value
Type:
IAsyncActionRemarks CanvasBitmapFileFormat.Auto will determine which encoding format to use based on the file extension.
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:
- DirectXPixelFormat.R16G16B16A16Float
- DirectXPixelFormat.R32G32B32A32Float
- DirectXPixelFormat.R16G16B16A16UIntNormalized
See Also