summaryrefslogtreecommitdiff
path: root/include/im_image.h
diff options
context:
space:
mode:
authorscuri <scuri>2009-12-25 22:43:49 +0000
committerscuri <scuri>2009-12-25 22:43:49 +0000
commitfe7fa107ff1fddbd12901a861148b154a4ab013d (patch)
tree7fe1055f4295f501c8dc7f635a578ffb54a32999 /include/im_image.h
parentbfaf1f4433372b13eb1b50c3be2c27c547cd9af5 (diff)
New: function imImageCopyPlane.
Diffstat (limited to 'include/im_image.h')
-rw-r--r--include/im_image.h20
1 files changed, 14 insertions, 6 deletions
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