]> granicus.if.org Git - imagemagick/blobdiff - magick/distort.h
(no commit message)
[imagemagick] / magick / distort.h
index ceb584fa3c112b560ea92cfb6aeb8a4319078904..143887cb3f8e4e8b8c258bf6f4fe29f9915a6acb 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  Copyright 1999-2009 ImageMagick Studio LLC, a non-profit organization
+  Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
   dedicated to making software imaging solutions freely available.
   
   You may not use this file except in compliance with the License.
 extern "C" {
 #endif
 
-#include <magick/draw.h>
-
 /*
   These two enum are linked, with common enumerated values.  Both
-  DistortImages() and SparseColor() often share code to determine
-  functional coefficients for common methods.
+  DistortImages() and SparseColor() often share code to determine functional
+  coefficients for common methods.
 
   Caution should be taken to ensure that only the common methods contain the
   same enumerated value, while all others remain unique across both
@@ -51,10 +49,10 @@ typedef enum
   BarrelDistortion,
   BarrelInverseDistortion,
   ShepardsDistortion,
+  ResizeDistortion,
   SentinelDistortion
 } DistortImageMethod;
 
-
 typedef enum
 {
   UndefinedColorInterpolate = UndefinedDistortion,
@@ -62,15 +60,19 @@ typedef enum
   BilinearColorInterpolate = BilinearReverseDistortion,
   PolynomialColorInterpolate = PolynomialDistortion,
   ShepardsColorInterpolate = ShepardsDistortion,
-  /* Methods unique to SparseColor(): */
-  VoronoiColorInterpolate = SentinelDistortion
+  /*
+    Methods unique to SparseColor().
+  */
+  VoronoiColorInterpolate = SentinelDistortion,
+  InverseColorInterpolate
 } SparseColorMethod;
 
 extern MagickExport Image
-  *DistortImage(const Image *,const DistortImageMethod,const unsigned long,
+  *DistortImage(const Image *,const DistortImageMethod,const size_t,
     const double *,MagickBooleanType,ExceptionInfo *exception),
+  *DistortResizeImage(const Image *,const size_t,const size_t,ExceptionInfo *),
   *SparseColorImage(const Image *,const ChannelType,const SparseColorMethod,
-    const unsigned long,const double *,ExceptionInfo *);
+    const size_t,const double *,ExceptionInfo *);
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }