Description
Gets a bounding rectangle for this path.
Syntax
GpStatus WINGDIPAPI GdipGetPathWorldBounds(
GpPath* path,
GpRectF* bounds,
GDIPCONST
GpMatrix *matrix,
GDIPCONST GpPen
*pen
);
PowerBASIC Syntax
DECLARE FUNCTION GdipGetPathWorldBounds ( _
BYVAL path AS
DWORD, _
BYREF bounds AS
RectF, _
BYVAL matrix AS
DWORD, _
BYVAL pen AS
DWORD _
) AS LONG
Parameters
path
[in] Pointer to a GraphicsPath
object.
bounds
[out] Pointer to a RectF
structure that receives the bounding rectangle.
matrix
[in] Pointer to a Matrix
object that specifies a transformation to be applied to this path
before the bounding rectangle is calculated. This path is not
permanently transformed; the transformation is used only during the
process of calculating the bounding rectangle. The default value is
NULL.
pen
[in] Pointer to a Pen
object that influences the size of the bounding rectangle. The bounding
rectangle received in bounds will be large enough to enclose this path
when the path is drawn with the pen specified by this parameter. This
ensures that the path is enclosed by the bounding rectangle even if the
path is drawn with a wide pen. The default value is NULL.
Remarks
The rectangle returned by this method might be
larger than necessary to enclose the path as drawn by the specified
pen. The rectangle is calculated to allow for the pen's miter limit at
sharp corners and to allow for the pen's end caps.
|