summaryrefslogtreecommitdiff
path: root/include/im_image.h
diff options
context:
space:
mode:
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