From 4e85aff8dc79d680f9b507f30053a17d27bbca42 Mon Sep 17 00:00:00 2001 From: scuri Date: Sun, 17 Jan 2010 18:15:37 +0000 Subject: New: function imImageSetAlpha. --- include/im_image.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/im_image.h') 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 -- cgit v1.2.3