def getdraw(im=None, hints=None):
 handler = None
 if ((not hints) or ('nicest' in hints)):
  try:
   from . import _imagingagg as handler
  except ImportError:
   pass
 if (handler is None):
  from . import ImageDraw2 as handler
 if im:
  im = handler.Draw(im)
 return (im, handler)

def getdraw ( im = None , hints = None ) : handler = None if ( ( not hints ) or ( 'nicest' in hints ) ) : try : from . import _imagingagg as handler except ImportError : pass if ( handler is None ) : from . import ImageDraw2 as handler if im : im = handler . Draw ( im ) return ( im , handler )
a more advanced 2d drawing interface for pil images .