GdipCreateLineBrush

 

 

Description

Creates a LinearGradientBrush object from a set of boundary points and boundary colors.

Syntax

GpStatus WINGDIPAPI GdipCreateLineBrush(

    GDIPCONST GpPointF* point1,

    GDIPCONST GpPointF* point2,

    ARGB color1,

    ARGB color2,

    GpWrapMode wrapMode,

    GpLineGradient **lineGradient

);

PowerBASIC Syntax

DECLARE FUNCTION GdipCreateLineBrush ( _

    BYREF point1 AS PointF, _

    BYREF point2 AS PointF, _

    BYVAL color1 AS DWORD, _

    BYVAL color2 AS DWORD, _

    BYVAL wrapMode AS LONG, _

    BYREF lineGradient AS DWORD _

) AS LONG

Parameters

 

point1

[in] Reference to a PointF object that specifies the starting point of the gradient. The starting boundary line passes through the starting point.

point2

[in] Reference to a PointF object that specifies the ending point of the gradient. The ending boundary line passes through the ending point.

color1

[in] ARGB color that specifies the color at the starting boundary line of this linear gradient brush.

color2

[in] ARGB color object that specifies the color at the ending boundary line of this linear gradient brush.

wrapMode

[in] A member of the WrapMode enumeration that specifies how areas filled with the brush are tiled.

lineGradient

[out] Pointer to a variable that receives a pointer to the new created LinearGradientBrush object.

 

Valid HTML 4.01 Transitional