]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 21 Jun 2015 23:51:58 +0000 (23:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 21 Jun 2015 23:51:58 +0000 (23:51 +0000)
MagickCore/image.c
MagickCore/image.h

index 877a85a64ca3c1a8579690bae002c1fa7b639cc8..cfbc881c605a9c8ad370e0a65b565df95843846f 100644 (file)
@@ -986,8 +986,10 @@ MagickExport ImageInfo *CloneImageInfo(const ImageInfo *image_info)
   SetImageInfoFile(clone_info,image_info->file);
   SetImageInfoBlob(clone_info,image_info->blob,image_info->length);
   clone_info->stream=image_info->stream;
-  (void) CopyMagickString(clone_info->magick,image_info->magick,MagickPathExtent);
-  (void) CopyMagickString(clone_info->unique,image_info->unique,MagickPathExtent);
+  (void) CopyMagickString(clone_info->magick,image_info->magick,
+    MagickPathExtent);
+  (void) CopyMagickString(clone_info->unique,image_info->unique,
+    MagickPathExtent);
   (void) CopyMagickString(clone_info->zero,image_info->zero,MagickPathExtent);
   (void) CopyMagickString(clone_info->filename,image_info->filename,
     MagickPathExtent);
@@ -1003,6 +1005,49 @@ MagickExport ImageInfo *CloneImageInfo(const ImageInfo *image_info)
 %                                                                             %
 %                                                                             %
 %                                                                             %
+%   C o p y I m a g e P i x e l s                                             %
+%                                                                             %
+%                                                                             %
+%                                                                             %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%  CopyImagePixels() copies pixels from the source image as defined by the
+%  geometry the destination image at the specified offset.
+%
+%  The format of the CopyImagePixels method is:
+%
+%      MagickBooleanType CopyImagePixels(Image *image,const Image *source_image,
+%        const RectangleInfo *geometry,const OffsetInfo *offset);
+%
+%  A description of each parameter follows:
+%
+%    o image: the destination image.
+%
+%    o source_image: the source image.
+%
+%    o geometry: define the dimensions of the source pixel rectangle.
+%
+%    o offset: define the offset in the destination image.
+%
+*/
+MagickExport MagickBooleanType CopyImagePixels(Image *image,
+  const Image *source_image,const RectangleInfo *geometry,
+  const OffsetInfo *offset)
+{
+  assert(image != (Image *) NULL);
+  if (image->debug != MagickFalse)
+    (void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
+  assert(source_image != (Image *) NULL);
+  assert(geometry != (RectangleInfo *) NULL);
+  assert(offset != (OffsetInfo *) NULL);
+  return(MagickTrue);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
 %   D e s t r o y I m a g e                                                   %
 %                                                                             %
 %                                                                             %
index d96dc9aaa5a6d63c37b9d4d43a10dd23670da6b0..60a31b1e6b8b49b46f722d6960f2ec6338d783f4 100644 (file)
@@ -533,6 +533,8 @@ extern MagickExport ImageInfo
 extern MagickExport MagickBooleanType
   ClipImage(Image *,ExceptionInfo *),
   ClipImagePath(Image *,const char *,const MagickBooleanType,ExceptionInfo *),
+  CopyImagePixels(Image *,const Image *,const RectangleInfo *,
+    const OffsetInfo *),
   IsTaintImage(const Image *),
   IsHighDynamicRangeImage(const Image *,ExceptionInfo *),
   IsImageObject(const Image *),