Click or drag to resize
CanvasDrawingSessionDrawImage Method (ICanvasImage, Vector2, Rect, Single, CanvasImageInterpolation)
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,
	Vector2 offset,
	Rect sourceRectangle,
	float opacity,
	CanvasImageInterpolation interpolation
)

Parameters

image
Type: Microsoft.Graphics.CanvasICanvasImage
offset
Type: System.NumericsVector2
sourceRectangle
Type: Windows.FoundationRect
opacity
Type: SystemSingle
interpolation
Type: Microsoft.Graphics.CanvasCanvasImageInterpolation
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.
  • The opacity parameter is a float between 0.0f and 1.0f. 1.0f is the default.
  • The interpolation parameter defaults to Linear.
  • This overload is not valid when Blend is set to Min.
See Also