def initializeFromXML(self, document): """Initialize this tiled image from a contents.xml document""" ImageInformation.initializeFrom(self, document) self.pyramid = Pyramid(self.image_size)
def __init__(self, image_path): ImageInformation.__init__(self) self.image_path = image_path self.background = (255, 255, 255)