CanvasBitmapGetBounds Method (ICanvasResourceCreator) |
Namespace: Microsoft.Graphics.Canvas
public Rect GetBounds( ICanvasResourceCreator resourceCreator )
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.