summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/png.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-04 21:53:55 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-04 21:53:55 +0000
commit8085395acc28d8c77901615f8862ceeda5773b09 (patch)
treec8261638a486191a3c2cea1ed91590f8104878c7 /libdimension/dimension/png.h
parentd3ad0b6a25146318d153ecd6c792e41a9a0a6025 (diff)
downloaddimension-8085395acc28d8c77901615f8862ceeda5773b09.tar.xz
New interface for optimizing canvas conversions by registering
dmnsn_set_pixel() callbacks.
Diffstat (limited to 'libdimension/dimension/png.h')
-rw-r--r--libdimension/dimension/png.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension/dimension/png.h b/libdimension/dimension/png.h
index 858f79f..f1b1470 100644
--- a/libdimension/dimension/png.h
+++ b/libdimension/dimension/png.h
@@ -27,6 +27,9 @@
#include <stdio.h>
+/* Optimize canvas for PNG exporting */
+int dmnsn_png_optimize_canvas(dmnsn_canvas *canvas);
+
/* Write canvas to file in PNG format. Returns 0 on success, nonzero on
failure */
int dmnsn_png_write_canvas(const dmnsn_canvas *canvas, FILE *file);