CanvasVirtualImageSource Constructor (ICanvasResourceCreator, Single, Single, Single, CanvasAlphaMode) |
Namespace: Microsoft.Graphics.Canvas.UI.Xaml
public CanvasVirtualImageSource( ICanvasResourceCreator resourceCreator, float width, float height, float dpi, CanvasAlphaMode alphaMode )
Size is in device independent pixels (DIPs), using the specified DPI.
The alphaMode parameter determines whether the background of the image source is opaque or not. An opaque image source is slightly more efficient than a transparent image source. CanvasAlphaMode.Ignore indicates an opaque background, while CanvasAlphaMode.Premultiplied indicates a transparent background. Passing CanvasAlphaMode.Straight to this parameter will result in an error.