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:
authorestudiante <estudiante@estudiante-laptop.(none)>2012-02-24 13:35:17 (GMT)
committer estudiante <estudiante@estudiante-laptop.(none)>2012-02-24 13:35:17 (GMT)
commit6600d10ce3e2fd8c2cf4a063ae0975c2393968d8 (patch)
tree804e43417a8a2b2cc5a96209dce2ad4857696e04 /thirdparty/cairoplot-trunk/trunk/cairoplot/handlers/png.py
parent00e242583bf6a6e98b4005aa089317da05070aa0 (diff)
Se editaron algunos archivos que daban dolores de cabeza.HEADmaster
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)
-