Click or drag to resize
CanvasBitmapSaveAsync Method (String, CanvasBitmapFileFormat)
Saves the entire bitmap to a file with the specified file name and file format, and a default quality level of 0.9.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public IAsyncAction SaveAsync(
	string fileName,
	CanvasBitmapFileFormat fileFormat
)

Parameters

fileName
Type: SystemString
fileFormat
Type: Microsoft.Graphics.CanvasCanvasBitmapFileFormat

Return Value

Type: IAsyncAction
Remarks

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