From fe7fa107ff1fddbd12901a861148b154a4ab013d Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 25 Dec 2009 22:43:49 +0000 Subject: New: function imImageCopyPlane. --- include/im_image.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/im_image.h b/include/im_image.h index 12dbad8..28c5369 100644 --- a/include/im_image.h +++ b/include/im_image.h @@ -129,6 +129,20 @@ void imImageCopy(const imImage* src_image, imImage* dst_image); * \ingroup imgclass */ void imImageCopyData(const imImage* src_image, imImage* dst_image); +/** Copies the image attributes from src to dst. + * Includes the pallete when a MAP or GRAY image. + * + * \verbatim image:CopyAttributes(dst_image: imImage) [in Lua 5] \endverbatim + * \ingroup imgclass */ +void imImageCopyAttributes(const imImage* src_image, imImage* dst_image); + +/** Copy one image plane fom one image to another. \n + * Images must have the same size and type. + * + * \verbatim image:CopyPlane(src_plane: number, dst_image: imImage, dst_plane: number) [in Lua 5] \endverbatim + * \ingroup imgclass */ +void imImageCopyPlane(const imImage* src_image, int src_plane, imImage* dst_image, int dst_plane); + /** Creates a copy of the image. * * \verbatim image:Duplicate() -> new_image: imImage [in Lua 5] \endverbatim @@ -190,12 +204,6 @@ int imImageIsBitmap(const imImage* image); * \ingroup imgclass */ void imImageSetPalette(imImage* image, long* palette, int palette_count); -/** Copies the image attributes from src to dst. - * - * \verbatim image:CopyAttributes(dst_image: imImage) [in Lua 5] \endverbatim - * \ingroup imgclass */ -void imImageCopyAttributes(const imImage* src_image, imImage* dst_image); - /** Returns 1 if the images match width and height. Returns 0 otherwise. * * \verbatim image:MatchSize(image2: imImage) -> match: boolean [in Lua 5] \endverbatim -- cgit v1.2.3