GdipGetRegionBoundsI

 

 

Description

Gets a rectangle that encloses this region.

Syntax

GpStatus WINGDIPAPI GdipGetRegionBoundsI(

    GpRegion *region,

    GpGraphics *graphics,

    GpRect *rect

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetRegionBoundsI ( _

    BYVAL region AS DWORD, _

    BYVAL graphics AS DWORD, _

    BYREF pRect AS RectL _

) AS LONG

Parameters

 

region

[in] Pointer to the Region object.

graphics

[in] Pointer to a Graphics object that contains the world and page transformations required to calculate the device coordinates of this region and the rectangle.

rect

[out] Pointer to a RectL structure that receives the enclosing rectangle.

Remarks

The current world and page transformations of the graphics object are used to calculate the region and the rectangle as they are drawn on the display device. The rectangle returned by GdipGetRegionBounds is not always the smallest possible rectangle.

 

Valid HTML 4.01 Transitional