Click or drag to resize
ICanvasImageGetBounds Method (ICanvasResourceCreator)
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
)

Parameters

resourceCreator
Type: Microsoft.Graphics.CanvasICanvasResourceCreator

Return Value

Type: Rect
Remarks

These bounds are the area the image would fill if it were drawn at target offset (0, 0), and identity 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