Click or drag to resize
CanvasBitmapGetBounds Method (ICanvasResourceCreator)
Retrieves the bounds of this CanvasBitmap.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
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.

Note: CanvasBitmap also has the Bounds and Size properties that can be used to directly query the bounds or size.

See Also