]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 2 Jun 2012 12:49:12 +0000 (12:49 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 2 Jun 2012 12:49:12 +0000 (12:49 +0000)
MagickWand/magick-image.c
MagickWand/magick-image.h

index f49a10490808a5a1a29ab4a09241a3c1669c2c6c..07aa1b561c9d01a65c81735101a7c83f89a259d3 100644 (file)
@@ -4620,6 +4620,44 @@ WandExport double *MagickGetImageDistortions(MagickWand *wand,
 %                                                                             %
 %                                                                             %
 %                                                                             %
+%   M a g i c k G e t I m a g e E n d i a n                                   %
+%                                                                             %
+%                                                                             %
+%                                                                             %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%
+%  MagickGetImageEndian() gets the image endian.
+%
+%  The format of the MagickGetImageEndian method is:
+%
+%      EndianType MagickGetImageEndian(MagickWand *wand)
+%
+%  A description of each parameter follows:
+%
+%    o wand: the magick wand.
+%
+*/
+WandExport EndianType MagickGetImageEndian(MagickWand *wand)
+{
+  assert(wand != (MagickWand *) NULL);
+  assert(wand->signature == WandSignature);
+  if( IfMagickTrue(wand->debug) )
+    (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
+
+  if (wand->images == (Image *) NULL)
+    {
+      (void) ThrowMagickException(wand->exception,GetMagickModule(),WandError,
+        "ContainsNoImages","'%s'",wand->name);
+      return(UndefinedEndian);
+    }
+  return(wand->images->endian);
+}
+\f
+/*
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%                                                                             %
+%                                                                             %
+%                                                                             %
 %   M a g i c k G e t I m a g e F i l e n a m e                               %
 %                                                                             %
 %                                                                             %
@@ -4774,7 +4812,7 @@ WandExport double MagickGetImageGamma(MagickWand *wand)
 %                                                                             %
 %                                                                             %
 %                                                                             %
-%   M a g i c k G e t I m a g e I n t e r l a c e S c h e m e                 %
+%   M a g i c k G e t I m a g e G r a v i t y                                 %
 %                                                                             %
 %                                                                             %
 %                                                                             %
index d2af547dd781c01ac532222634259cb05149c77d..b4eea3bac869aecfa7b729469693c8bfcd0c9415 100644 (file)
@@ -54,6 +54,9 @@ extern WandExport double
   MagickGetImageGamma(MagickWand *),
   MagickGetImageTotalInkDensity(MagickWand *);
 
+extern WandExport EndianType
+  MagickGetImageEndian(MagickWand *);
+
 extern WandExport GravityType
   MagickGetImageGravity(MagickWand *);