Click or drag to resize
CanvasBitmapBounds Property
Gets the bounds of the bitmap, in device independent pixels (DIPs).

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version:
public Rect Bounds { get; }

Property Value

Type: Rect

This property is a convenience shortcut for when you need the bitmap size in Rect format. The value of myBitmap.Bounds is Rect(Point(0, 0), myBitmap.Size).

For more information, see DPI and DIPs.

See Also