CanvasVirtualBitmapLoadAsync Method (ICanvasResourceCreator, IRandomAccessStream, CanvasVirtualBitmapOptions, CanvasAlphaMode) |
Namespace: Microsoft.Graphics.Canvas
public static IAsyncOperation<CanvasVirtualBitmap> LoadAsync( ICanvasResourceCreator resourceCreator, IRandomAccessStream stream, CanvasVirtualBitmapOptions options, CanvasAlphaMode alpha )
The default options is None.
The default alpha value is Premultiplied.
Unless ReleaseSource is specified, the CanvasVirtualBitmap will retain a reference to the stream.
When loading a JpegXR format bitmap that contains high dynamic range (HDR) pixel data, the loaded bitmap may use one of the pixel formats:
For all other file formats, or when the current device does not support high dynamic range pixel formats (as reported by IsPixelFormatSupported(DirectXPixelFormat)), the loaded bitmap will use DirectXPixelFormat.B8G8R8A8UIntNormalized.