Click or drag to resize
CanvasDrawingSessionDrawImage Method (ICanvasImage, Single, Single, Rect)
Draws an image.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawImage(
	ICanvasImage image,
	float x,
	float y,
	Rect sourceRectangle
)

Parameters

image
Type: Microsoft.Graphics.CanvasICanvasImage
x
Type: SystemSingle
y
Type: SystemSingle
sourceRectangle
Type: Windows.FoundationRect
Remarks
  • The image is drawn at the specified offset.
  • The source rectangle specifies, in the image's coordinate system, the area within the image that will be drawn.
  • This overload is not valid when Blend is set to Min.
See Also