def blit(self, bbox=None):
if bbox is None:<EOL><INDENT>self.bitmap = _convert_agg_to_wx_bitmap(self.get_renderer(), None)<EOL>self.gui_repaint()<EOL>return<EOL><DEDENT>l, b, w, h = bbox.bounds<EOL>r = l + w<EOL>t = b + h<EOL>x = int(l)<EOL>y = int(self.bitmap.GetHeight() - t)<EOL>srcBmp = _convert_agg_to_wx_bitmap(self.get_renderer(), None)<EOL>srcDC = wx.MemoryDC()<EOL>srcDC.SelectObject(srcBmp)<EOL>destDC = wx.MemoryDC()<EOL>destDC.SelectObject(self.bitmap)<EOL>destDC.BeginDrawing()<EOL>destDC.Blit(x, y, int(w), int(h), srcDC, x, y)<EOL>destDC.EndDrawing()<EOL>destDC.SelectObject(wx.NullBitmap)<EOL>srcDC.SelectObject(wx.NullBitmap)<EOL>self.gui_repaint()<EOL>
Transfer the region of the agg buffer defined by bbox to the display.
If bbox is None, the entire buffer is transferred.