'Return the contents of this PixMap as a PIL Image object.'

def toImage(self):

    import Image
    data = (self.tostring()[1:] + chr(0))
    bounds = self.bounds
    return Image.fromstring('RGBA', ((bounds[2] - bounds[0]), (bounds[3] - bounds[1])), data)
