From 577670a7706bb70bf1a4c30fb0255045e5f8469c Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 8 Jan 2010 03:48:22 +0000 Subject: New: function imProcessCompose. --- src/lua5/imlua_process.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'src/lua5/imlua_process.c') diff --git a/src/lua5/imlua_process.c b/src/lua5/imlua_process.c index 198d0e5..299155a 100644 --- a/src/lua5/imlua_process.c +++ b/src/lua5/imlua_process.c @@ -2,7 +2,7 @@ * \brief IM Lua 5 Binding * * See Copyright Notice in im_lib.h - * $Id: imlua_process.c,v 1.9 2010/01/06 20:16:30 scuri Exp $ + * $Id: imlua_process.c,v 1.10 2010/01/08 03:49:05 scuri Exp $ */ #include @@ -1702,6 +1702,22 @@ static int imluaProcessBlend (lua_State *L) return 0; } +/*****************************************************************************\ + im.ProcessCompose +\*****************************************************************************/ +static int imluaProcessCompose(lua_State *L) +{ + imImage *src_image1 = imlua_checkimage(L, 1); + imImage *src_image2 = imlua_checkimage(L, 2); + imImage *dst_image = imlua_checkimage(L, 4); + + imlua_match(L, src_image1, src_image2); + imlua_match(L, src_image1, dst_image); + + imProcessCompose(src_image1, src_image2, dst_image); + return 0; +} + /*****************************************************************************\ im.ProcessSplitComplex \*****************************************************************************/ @@ -2990,6 +3006,7 @@ static const luaL_reg improcess_lib[] = { {"ProcessArithmeticConstOp", imluaProcessArithmeticConstOp}, {"ProcessBlendConst", imluaProcessBlendConst}, {"ProcessBlend", imluaProcessBlend}, + {"ProcessCompose", imluaProcessCompose}, {"ProcessSplitComplex", imluaProcessSplitComplex}, {"ProcessMergeComplex", imluaProcessMergeComplex}, {"ProcessMultipleMean", imluaProcessMultipleMean}, -- cgit v1.2.3