7 class ImageStore(object):
9 def __init__(self, storePath, cachePath):
10 self._storePath = storePath
11 self._cachePath = cachePath
13 def get_surface_from_store(self, image):
14 path = os.path.join(self._storePath, image)
15 image = cairo.ImageSurface.create_from_png(path)
18 def get_image_from_store(self, image):
19 path = os.path.join(self._storePath, image)
21 image.set_from_file(path)