Home COM GDI+ WebBrowser Data Access 

SolidBrush Functions (GDI+)

 

 

Return Values

If the function succeeds, it returns Ok, which is an element of the Status enumeration.

 

If the function fails, it returns one of the other elements of the Status enumeration.

 

GdipCreateSolidFill

 

Description

Creates a SolidBrush object based on a color.

Syntax

GpStatus WINGDIPAPI GdipCreateSolidFill(

    ARGB color,

    GpSolidFill **brush

);

PowerBASIC Syntax

DECLARE FUNCTION GdipCreateSolidFill ( _

    BYVAL pColor AS DWORD _

  , BYREF brush AS DWORD _

) AS LONG

Parameters

 

color

[in] ARGB color that specifies the initial color of this solid brush.

brush

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

 

GdipGetSolidFillColor

 

Description

Gets the color of this SolidBrush object.

Syntax

GpStatus WINGDIPAPI GdipGetSolidFillColor(

    GpSolidFill *brush,

    ARGB *color

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetSolidFillColor ( _

    BYVAL brush AS DWORD, _

    BYREF pColor AS DWORD _

) AS LONG

Parameters

 

brush

[in] Pointer to the SolidBrush object.

color

[out] Pointer to a variable that receives the color of this solid brush.

 

GdipSetSolidFillColor

 

Description

Sets the color of this SolidBrush object.

Syntax

GpStatus WINGDIPAPI GdipSetSolidFillColor(

    GpSolidFill *brush,

    ARGB color

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetSolidFillColor ( _

    BYVAL brush AS DWORD, _

    BYVAL pColor AS DWORD _

) AS LONG

Parameters

 

brush

[in] Pointer to the SolidBrush object.

color

[in] ARGB color that specifies the color to be set in this solid brush.

 

Page last updated on Monday, 11 December 2006 11:01:37 +0100