Home COM GDI+ WebBrowser Data Access 

Brush Functions (GDI+)

 

 

A Brush object is used to paint the interior of graphics shapes, such as rectangles, ellipses, pies, polygons, and paths.

 

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.

 

GdipCloneBrush

 

Description

Creates a new Brush object based on this brush.

Syntax

GpStatus WINGDIPAPI GdipCloneBrush(

    GpBrush *brush,

    GpBrush **cloneBrush

);

PowerBASIC Syntax

DECLARE FUNCTION GdipCloneBrush ( _

    BYVAL brush AS DWORD, _

    BYREF cloneBrush AS DWORD _

) AS LONG

Parameters

 

brush

[in] Pointer to the Brush object created with GdipCreateSolidFill, GdipCreateHatchBrush, GdipCloneBrush or similar function.

cloneBrush

[in] Pointer to a DWORD variable that recives a pointer to the new Brush object.

 

GdipDeleteBrush

 

Description

Deletes the specified Brush object.

Syntax

GpStatus WINGDIPAPI GdipDeleteBrush(

    GpBrush *brush,

);

PowerBASIC Syntax

DECLARE FUNCTION GdipDeleteBrush ( _

    BYVAL brush AS DWORD _

) AS LONG

Parameters

 

brush

[in] Pointer to the Brush object created with GdipCreateSolidFill, GdipCreateHatchBrush, GdipCloneBrush or similar function.

 

GdipGetBrushType

 

Description

Gets the type of this brush.

Syntax

GpStatus WINGDIPAPI GdipGetBrushType(

    GpBrush *brush,

    GpBrushType *type

);

PowerBASIC Syntax

DECLARE FUNCTION GdipGetBrushType ( _

    BYVAL brush AS DWORD, _

    BYREF ptype AS LONG _

) AS LONG

Parameters

 

brush

[in] Pointer to the Brush object created with GdipCreateSolidFill, GdipCreateHatchBrush, GdipCloneBrush or similar function.

type

[out] Pointer to a LONG variable that receives the type of this brush. The value returned is one of the elements of the BrushType enumeration.

 

Page last updated on Monday, 11 December 2006 11:03:27 +0100