Contents Up Previous Next

Brush

A brush is a an object that can be set for a device context (see canvas-get-dc, device context) and determines the fill colour and style for subsequent drawing operations.

See also pen.

brush-create
brush-delete


brush-create

long ( brush-create string colour word style)

long ( brush-create long colour-value word style)

Creates a brush for use in a device context.

colour is a wxWindows colour string such as "BLACK'', "CYAN''), and style may be one of wxSOLID, wxTRANSPARENT.

colour-value is a value returned from colour-create.

A brush must be set to fill graphic shapes.


brush-delete

long ( brush-delete long brush-id)

Deletes the given brush.