Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py')
-rwxr-xr-xthirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py b/thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py
deleted file mode 100755
index 6cce422..0000000
--- a/thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py
+++ /dev/null
@@ -1,19 +0,0 @@
-
-import cairo
-
-from .fixedsize import FixedSizeHandler as _FixedSizeHandler
-
-class PNGHandler(_FixedSizeHandler):
- """Handler to create plots that output to png files."""
-
- def __init__(self, filename, width, height):
- """Creates a surface to be used by Cairo."""
- _FixedSizeHandler.__init__(self, width, height)
- self.filename = filename
- self.surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
-
- def commit(self, plot):
- """Writes plot to file."""
- _FixedSizeHandler.commit(self, plot)
- self.surface.write_to_png(self.filename)
-