GdipGetLineRect

 

 

Description

Gets the rectangle that defines the boundaries of the gradient.

Syntax

GpStatus WINGDIPAPI GdipGetLineRect(

    GpLineGradient *brush,

    GpRectF *rect

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetLineRect ( _

    BYVAL brush AS DWORD, _

    BYREF pRect AS RectF _

) AS LONG

Parameters

 

brush

[in] Pointer to the LinearGradientBrush object.

rect

[out] Pointer to a RectF object that receives the rectangle that defines the boundaries of the gradient. For example, if a linear gradient brush is constructed with a starting point at (20.2, 50.8) and an ending point at (60.5, 110.0), then the defining rectangle has its upper-left point at (20.2, 50.8), a width of 40.3, and a height of 59.2.

 

Valid HTML 4.01 Transitional