A GraphicsBitmap is a wrapper around a cairo ImageSurface. It can be used as a source for drawing images, or as a target of drawing operations.
wx.lib.graphics.GraphicsObject
Create either a NULL GraphicsBitmap or an empty one if a size is given |
|
Return the contents of this |
|
Create a GraphicsBitmap from a wx.Bitmap |
|
Creates a GraphicsBitmap that uses the given buffer object as |
|
Create a GraphicsBitmap from a PNG file |
|
Use an existing cairo ImageSurface as a GraphicsBitmap |
|
Returns whether the object is valid. |
The type or format of the Cairo |
|
The height of the bitmap and surface |
|
A tuple consisting of the Width and Height |
|
The “stride” of the Cairo |
|
A reference to the Cairo |
|
The width of the bitmap and surface |
A GraphicsBitmap is a wrapper around a cairo ImageSurface. It can be used as a source for drawing images, or as a target of drawing operations.
Create either a NULL GraphicsBitmap or an empty one if a size is given
Return the contents of this GraphicsBitmap
as a wx.Image
.
Currently not implemented…
Create a GraphicsBitmap from a wx.Bitmap
Creates a GraphicsBitmap that uses the given buffer object as the pixel storage. This means that the current contents of the buffer will be the initial state of the bitmap, and anything drawn to this surface will be stored in the given buffer.
Create a GraphicsBitmap from a PNG file
Use an existing cairo ImageSurface as a GraphicsBitmap
Returns whether the object is valid.
The type or format of the Cairo Surface
.
Typically FORMAT_ARGB32
or FORMAT_RGB24
The height of the bitmap and surface
A tuple consisting of the Width and Height
The “stride” of the Cairo Surface
, in bytes.
The stride is the distance in bytes from the beginning of one row
of the image data to the beginning of the next row.
A reference to the Cairo Surface
used for this bitmap.
The width of the bitmap and surface