Ejemplo n.º 1
0
    def __call__(filename, compression=0):
        from gamera.plugins import _png_support

        return _png_support.load_PNG(filename, compression)
Ejemplo n.º 2
0
 def write_image(self, s, filename, tag=""):
     image = _png_support.load_PNG(
         os.path.join(self.docgen.output_images_path, filename + ".png"), 0)
     s.write(
         ".. %s image:: images/%s.png\n   :height: %d\n   :width: %d\n\n" %
         (tag, filename, image.height, image.width))
Ejemplo n.º 3
0
 def write_image(self, s, filename, tag=""):
    image = _png_support.load_PNG(os.path.join(self.docgen.output_images_path, filename + ".png"), 0)
    s.write(".. %s image:: images/%s.png\n   :height: %d\n   :width: %d\n\n" %
            (tag, filename, image.height, image.width))
Ejemplo n.º 4
0
 def __call__(filename, compression = 0):
     from gamera.plugins import _png_support
     return _png_support.load_PNG(filename, compression)