diff src/shape_image.c @ 343:bb6e964da1c8

sh_image_get_img_data()
author Thinker K.F. Li <thinker@branda.to>
date Sun, 08 Mar 2009 11:39:09 +0800
parents 6a1b36738d3d
children b391722bf20e
line wrap: on
line diff
--- a/src/shape_image.c	Sun Mar 08 10:13:44 2009 +0800
+++ b/src/shape_image.c	Sun Mar 08 11:39:09 2009 +0800
@@ -210,3 +210,10 @@
     return OK;
 }
 
+mb_img_data_t *sh_image_get_img_data(shape_t *shape) {
+    sh_image_t *img = (sh_image_t *)shape;
+    
+    ASSERT(shape->obj.obj_type == MBO_IMAGE);
+    
+    return img->img_data;
+}