Click or drag to resize
CanvasDrawingSessionDrawImage Method (CanvasBitmap, Rect)
Draws a bitmap.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawImage(
	CanvasBitmap bitmap,
	Rect destinationRectangle
)

Parameters

bitmap
Type: Microsoft.Graphics.CanvasCanvasBitmap
destinationRectangle
Type: Windows.FoundationRect
Remarks
  • The bitmap is scaled to fill the specified destination rectangle.
  • This overload only accepts bitmaps since non-bitmap images (command lists or effects) need a source rectangle to be specified as they may be have infinite size.
See Also