From a2596ae54440d4d64f6df207298ab5c61513f1fa Mon Sep 17 00:00:00 2001 From: scuri Date: Tue, 16 Aug 2011 18:22:11 +0000 Subject: Changed: imImageInit now accepts also the IM_ALPHA flag. --- include/im_image.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3