A GraphicsBrush
is used to define how fills are painted.
They can have either a solid fill (colors with or without alpha), a
stipple created from a wx.Bitmap
, or a Cairo Pattern
object.
wx.lib.graphics.GraphicsObject
Create a new |
|
Apply this brush’s properties to the given context. |
|
Converts a |
|
Create a |
The color to use when filling with the brush. |
|
A pattern to be used when filling with this brush. |
|
The Stipple is a bitmap to be used as a pattern when filling with this brush. |
|
The style of the brush to be used when filling. |
A GraphicsBrush
is used to define how fills are painted.
They can have either a solid fill (colors with or without alpha), a
stipple created from a wx.Bitmap
, or a Cairo Pattern
object.
Create a new GraphicsBrush
.
Apply this brush’s properties to the given context.
Called by GraphicsContext
as needed.
Create a GraphicsBrush
directly from a Cairo Pattern
object.
This is similar to using a stipple bitmap, but saves a step, and
patterns can include gradients, etc.
A pattern to be used when filling with this brush.
Cairo Pattern
The Stipple is a bitmap to be used as a pattern when filling with this brush.
This will be converted to a Cairo Pattern
when applied to
a GraphicsContext
.
The style of the brush to be used when filling.
Currently, wx.BRUSHSTYLE_SOLID
and wx.BRUSHSTYLE_STIPPLE
are supported.