diff options
author | scuri <scuri> | 2010-05-26 18:29:48 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-05-26 18:29:48 +0000 |
commit | c196148fb2fd001a16434c46427d7651e5abb7f2 (patch) | |
tree | 652fa3f9e6e96a587169daba800dedd67d5a702a /include/im_image.h | |
parent | d10c0cb34f483d5189ea70152babeabd0b89b546 (diff) |
# Fixed: image:HasAlpha() method in Lua was returning a number instead of a boolean, so im.ImageCreateBased was adding an alpha channel to all new images.
Diffstat (limited to 'include/im_image.h')
-rw-r--r-- | include/im_image.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/im_image.h b/include/im_image.h index 6a325c1..e795479 100644 --- a/include/im_image.h +++ b/include/im_image.h @@ -41,7 +41,7 @@ typedef struct _imImage int height; /**< Number of lines. image:Height() -> height: number [in Lua 5]. */ int color_space; /**< Color space descriptor. See also \ref imColorSpace. image:ColorSpace() -> color_space: number [in Lua 5]. */ int data_type; /**< Data type descriptor. See also \ref imDataType. image:DataType() -> data_type: number [in Lua 5]. */ - int has_alpha; /**< Indicates that there is an extra channel with alpha. image:HasAlpha() -> has_alpha: number [in Lua 5]. \n + int has_alpha; /**< Indicates that there is an extra channel with alpha. image:HasAlpha() -> has_alpha: boolean [in Lua 5]. \n It will not affect the secondary parameters, i.e. the number of planes will be in fact depth+1. \n It is always 0 unless imImageAddAlpha is called, this is done in image load functions. */ |