From 577670a7706bb70bf1a4c30fb0255045e5f8469c Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 8 Jan 2010 03:48:22 +0000 Subject: New: function imProcessCompose. --- include/im_process_pon.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/im_process_pon.h') diff --git a/include/im_process_pon.h b/include/im_process_pon.h index 2420360..635448a 100644 --- a/include/im_process_pon.h +++ b/include/im_process_pon.h @@ -126,6 +126,20 @@ void imProcessBlendConst(const imImage* src_image1, const imImage* src_image2, i * \ingroup arithm */ void imProcessBlend(const imImage* src_image1, const imImage* src_image2, const imImage* alpha_image, imImage* dst_image); +/** Compose two images that have an alpha channel using the OVER operator. \n + * Can be done in place, images must match size and type. \n + * Integer alpha values must be: +\verbatim +0 - 255 IM_BYTE +0 - 65535 IM_USHORT +0 - 2147483647 IM_INT +\endverbatim + * that will be normalized to 0 - 1. + * \verbatim im.ProcessCompose(src_image1: imImage, src_image2: imImage, dst_image: imImage) [in Lua 5] \endverbatim + * \verbatim im.ProcessComposeNew(image1: imImage, image2: imImage) -> new_image: imImage [in Lua 5] \endverbatim + * \ingroup arithm */ +void imProcessCompose(const imImage* src_image1, const imImage* src_image2, imImage* dst_image); + /** Split a complex image into two images with real and imaginary parts \n * or magnitude and phase parts (polar). \n * Source image must be IM_CFLOAT, destiny images must be IM_FLOAT. -- cgit v1.2.3