Home | Trees | Index | Help |
|
---|
Package wx :: Class MemoryDC |
|
object
--+ |Object
--+ |DC
--+ |WindowDC
--+ | MemoryDC
BitmapBuffer
,
BufferedDC
A memory device context provides a means to draw graphics onto a bitmap. A bitmap must be selected into the new memory DC before it may be used for anything. Typical usage is as follows:
dc = wx.MemoryDC() dc.SelectObject(bitmap) # draw on the dc using any of the Draw methods dc.SelectObject(wx.NullBitmap) # the bitmap now contains wahtever was drawn upon it
Note that the memory DC must be deleted (or the bitmap selected out of it) before a bitmap can be reselected into another memory DC.
Method Summary | |
---|---|
MemoryDC |
Constructs a new memory device context. |
Selects the bitmap into the device context, to use as the memory bitmap. | |
SelectObjectAsSource(self,
bmp)
|
Property Summary | |
---|---|
thisown : The membership flag |
Method Details |
---|
__init__(self,
bitmap=NullBitmap)
|
SelectObject(self, bitmap)Selects the bitmap into the device context, to use as the memory bitmap. Selecting the bitmap into a memory DC allows you to draw into the DC, and therefore the bitmap, and also to use Blit to copy the bitmap to a window. If the argument is wx.NullBitmap (or some other uninitialised
|
Property Details |
---|
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:14:10 2007 | http://epydoc.sf.net |