summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorscuri <scuri>2011-08-16 18:22:11 +0000
committerscuri <scuri>2011-08-16 18:22:11 +0000
commita2596ae54440d4d64f6df207298ab5c61513f1fa (patch)
tree1d9a2d4e77a9b842855bcf795bd09a6d79bd9122 /include
parent50118ed48c60c67ff51cf12030420bc73275a47f (diff)
Changed: imImageInit now accepts also the IM_ALPHA flag.
Diffstat (limited to 'include')
-rw-r--r--include/im_image.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/im_image.h b/include/im_image.h
index bd13c24..9d22b54 100644
--- a/include/im_image.h
+++ b/include/im_image.h
@@ -79,9 +79,12 @@ typedef struct _imImage
imImage* imImageCreate(int width, int height, int color_space, int data_type);
/** Initializes the image structure but does not allocates image data.
- * See also \ref imDataType and \ref imColorSpace.
+ * See also \ref imDataType and \ref imColorSpace.
+ * The only addtional flag thar color_mode can has here is IM_ALPHA.
+ * To release the image structure without releasing the buffer,
+ * set "data[0]" to NULL before calling imImageDestroy.
* \ingroup imgclass */
-imImage* imImageInit(int width, int height, int color_space, int data_type, void* data_buffer, long* palette, int palette_count);
+imImage* imImageInit(int width, int height, int color_mode, int data_type, void* data_buffer, long* palette, int palette_count);
/** Creates a new image based on an existing one. \n
* If the addicional parameters are -1, the given image parameters are used. \n