def _py_WX28_convert_agg_to_wx_bitmap(agg, bbox):
 if (bbox is None):
  return wx.BitmapFromBufferRGBA(int(agg.width), int(agg.height), agg.buffer_rgba(0, 0))
 else:
  return _WX28_clipped_agg_as_bitmap(agg, bbox)

def _py_WX28_convert_agg_to_wx_bitmap ( agg , bbox ) : if ( bbox is None ) : return wx . BitmapFromBufferRGBA ( int ( agg . width ) , int ( agg . height ) , agg . buffer_rgba ( 0 , 0 ) ) else : return _WX28_clipped_agg_as_bitmap ( agg , bbox )
convert the region of the agg buffer bounded by bbox to a wx .