Click or drag to resize
ICanvasImageGetBounds Method (ICanvasResourceCreator, Matrix3x2)
Retrieves the bounds of this ICanvasImage.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
Rect GetBounds(
	ICanvasResourceCreator resourceCreator,
	Matrix3x2 transform
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator
transform
Type: System.NumericsMatrix3x2

Return Value

Type: Rect
Remarks

These bounds are the area the image would fill if it were drawn at target offset (0, 0) with the specified transform transform

If the resourceCreator parameter is a CanvasDrawingSession instance then the units used depends on the current value of the CanvasDrawingSession.Units property. Otherwise the result is in Dips.

See Also