def _py_convert_agg_to_wx_bitmap(agg, bbox):
 if (bbox is None):
  return wx.BitmapFromImage(_py_convert_agg_to_wx_image(agg, None))
 else:
  return _clipped_image_as_bitmap(_py_convert_agg_to_wx_image(agg, None), bbox)

def _py_convert_agg_to_wx_bitmap ( agg , bbox ) : if ( bbox is None ) : return wx . BitmapFromImage ( _py_convert_agg_to_wx_image ( agg , None ) ) else : return _clipped_image_as_bitmap ( _py_convert_agg_to_wx_image ( agg , None ) , bbox )
convert the region of the agg buffer bounded by bbox to a wx .