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

ViewerBase.GetViewportBounds Method

Returns a rectangle where the image is displayed.

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

Syntax

Visual Basic
Public MustOverride Function GetViewportBounds As Rectangle
C#
public abstract Rectangle GetViewportBounds()

Return Value

A rectangle where the image is displayed.

Remarks

Left-top corner coordinates are measured relatively to the return value of the GetCanvasBounds() method. Width and height do not include a bitmap border.

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

Reference