This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapViewer.GetViewportBounds Method

Returns a rectangle where the image is displayed.

Namespace: Aurigma.GraphicsMill.WinControls
Assembly: Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)


Visual Basic
Public Overrides Function GetViewportBounds As Rectangle
public override Rectangle GetViewportBounds()

Return Value

A rectangle where the image is displayed.


Left-top corner coordinates are measured relatively to the return value of the GetCanvasBounds() method. Width and height do not include a bitmap border (see WorkspaceBorderWidth, WorkspaceBorderEnabled, and WorkspaceBorderColor properties for more details).

If the image is larger than the control client area, left and top coordinates are equal to 0, and width and height of this rectangle are the same as the width and the height of the GetCanvasBounds() return value.

See Also