def fromqpixmap(im):
 from . import ImageQt
 if (not ImageQt.qt_is_installed):
  raise ImportError('Qt bindings are not installed')
 return ImageQt.fromqpixmap(im)

def fromqpixmap ( im ) : from . import ImageQt if ( not ImageQt . qt_is_installed ) : raise ImportError ( 'Qt bindings are not installed' ) return ImageQt . fromqpixmap ( im )
creates an image instance from a qpixmap image .