Description
Gets a rectangle that encloses this region.
Syntax
GpStatus WINGDIPAPI GdipGetRegionBounds(
GpRegion
*region,
GpGraphics
*graphics,
GpRectF *rect
);
PowerBASIC Syntax
DECLARE FUNCTION GdipGetRegionBounds ( _
BYVAL region AS
DWORD, _
BYVAL graphics
AS DWORD, _
BYREF pRect AS
RectF _
) 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 RectF
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.
|