]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 23 May 2012 11:29:55 +0000 (11:29 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 23 May 2012 11:29:55 +0000 (11:29 +0000)
MagickWand/magick-image.c
MagickWand/magick-image.h

index 5e332612b633444c538f8e462513a5fedd09a45f..b253b620af45de63b934b756399a482d7f006105 100644 (file)
@@ -9456,6 +9456,44 @@ WandExport MagickBooleanType MagickSetImageDispose(MagickWand *wand,
 %                                                                             %
 %                                                                             %
 %                                                                             %
+%   M a g i c k S e t I m a g e E n d i a n                                   %
+%                                                                             %
+%                                                                             %
+%                                                                             %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%  MagickSetImageEndian() sets the image endian method.
+%
+%  The format of the MagickSetImageEndian method is:
+%
+%      MagickBooleanType MagickSetImageEndian(MagickWand *wand,
+%        const EndianType endian)
+%
+%  A description of each parameter follows:
+%
+%    o wand: the magick wand.
+%
+%    o endian: the image endian type.
+%
+*/
+WandExport MagickBooleanType MagickSetImageEndian(MagickWand *wand,
+  const EndianType endian)
+{
+  assert(wand != (MagickWand *) NULL);
+  assert(wand->signature == WandSignature);
+  if (wand->debug != MagickFalse)
+    (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
+  if (wand->images == (Image *) NULL)
+    ThrowWandException(WandError,"ContainsNoImages",wand->name);
+  wand->images->endian=endian;
+  return(MagickTrue);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
 %   M a g i c k S e t I m a g e E x t e n t                                   %
 %                                                                             %
 %                                                                             %
index 40e52f8c3eda9ae36f1dc40f98074f77e1c0311b..ae75da17850177c44fe8de344302787d0418814a 100644 (file)
@@ -245,6 +245,7 @@ extern WandExport MagickBooleanType
   MagickSetImageDepth(MagickWand *,const size_t),
   MagickSetImageDispose(MagickWand *,const DisposeType),
   MagickSetImageCompressionQuality(MagickWand *,const size_t),
+  MagickSetImageEndian(MagickWand *,const EndianType),
   MagickSetImageExtent(MagickWand *,const size_t,const size_t),
   MagickSetImageFilename(MagickWand *,const char *),
   MagickSetImageFormat(MagickWand *,const char *),