summaryrefslogtreecommitdiffstats
path: root/libdimension-python/dimension.pxd
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-29 16:52:14 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-29 16:54:46 -0600
commitebe36194a9f2e97345a296f7fe8c844690d03e85 (patch)
tree80e0ac5516968ec689844c9885f2cc587466073f /libdimension-python/dimension.pxd
parentdb4ae36f80ebb430e6e02aaa7e282e0ca19a9407 (diff)
downloaddimension-ebe36194a9f2e97345a296f7fe8c844690d03e85.tar.xz
Add [] accessors to Canvases.
Diffstat (limited to 'libdimension-python/dimension.pxd')
-rw-r--r--libdimension-python/dimension.pxd4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdimension-python/dimension.pxd b/libdimension-python/dimension.pxd
index 411be3f..e1bcc1e 100644
--- a/libdimension-python/dimension.pxd
+++ b/libdimension-python/dimension.pxd
@@ -184,6 +184,10 @@ cdef extern from "../libdimension/dimension.h":
dmnsn_canvas *dmnsn_new_canvas(size_t width, size_t height)
void dmnsn_delete_canvas(dmnsn_canvas *canvas)
+ dmnsn_color dmnsn_get_pixel(dmnsn_canvas *canvas, size_t x, size_t y)
+ void dmnsn_set_pixel(dmnsn_canvas *canvas, size_t x, size_t y,
+ dmnsn_color color)
+
void dmnsn_clear_canvas(dmnsn_canvas *canvas, dmnsn_color color)
int dmnsn_png_optimize_canvas(dmnsn_canvas *canvas)