summaryrefslogtreecommitdiff
path: root/include/im_image.h
diff options
context:
space:
mode:
authorscuri <scuri>2010-01-17 18:15:37 +0000
committerscuri <scuri>2010-01-17 18:15:37 +0000
commit4e85aff8dc79d680f9b507f30053a17d27bbca42 (patch)
tree0317efe750baf4120884c101a87a2ba41110c525 /include/im_image.h
parent8b2047804cba012ffa63134d977f4ec025e840cd (diff)
New: function imImageSetAlpha.
Diffstat (limited to 'include/im_image.h')
-rw-r--r--include/im_image.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/im_image.h b/include/im_image.h
index 28c5369..6a325c1 100644
--- a/include/im_image.h
+++ b/include/im_image.h
@@ -103,12 +103,18 @@ imImage* imImageCreateBased(const imImage* image, int width, int height, int col
* \ingroup imgclass */
void imImageDestroy(imImage* image);
-/** Adds an alpha channel plane.
+/** Adds an alpha channel plane and sets its value to 0 (transparent).
*
* \verbatim image:AddAlpha() [in Lua 5] \endverbatim
* \ingroup imgclass */
void imImageAddAlpha(imImage* image);
+/** Sets the alpha channel plane to a constant.
+ *
+ * \verbatim image:SetAlpha() [in Lua 5] \endverbatim
+ * \ingroup imgclass */
+void imImageSetAlpha(imImage* image, float alpha);
+
/** Changes the buffer size. Reallocate internal buffers if the new size is larger than the original.
*
* \verbatim image:Reshape(width: number, height: number) [in Lua 5] \endverbatim