__init__(self,
dc,
buffer)
(Constructor)
__init__(self, DC dc, Size area) -> BufferedDC
Constructs a buffered DC.
-
- Parameters:
dc -
The underlying DC: everything drawn to this object will
be flushed to this DC when this object is destroyed. You may
pass None in order to just initialize the buffer, and not
flush it.
(type=DC)
buffer -
If a wx.Size object is passed as the 2nd arg then
it is the size of the bitmap that will be created internally
and used for an implicit buffer. If the 2nd arg is a
wx.Bitmap then it is the explicit buffer that will be
used. Using an explicit buffer is the most efficient solution
as the bitmap doesn't have to be recreated each time but it
also requires more memory as the bitmap is never freed. The
bitmap should have appropriate size, anything drawn outside of
its bounds is clipped.
(type=Bitmap)
- Returns:
-
BufferedDC
- Overrides:
wx.MemoryDC.__init__
|