summaryrefslogtreecommitdiff
path: root/dmagick/c/distort.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/c/distort.d')
-rw-r--r--dmagick/c/distort.d43
1 files changed, 43 insertions, 0 deletions
diff --git a/dmagick/c/distort.d b/dmagick/c/distort.d
new file mode 100644
index 0000000..bb32224
--- /dev/null
+++ b/dmagick/c/distort.d
@@ -0,0 +1,43 @@
+module dmagick.c.distort;
+
+import dmagick.c.exception;
+import dmagick.c.image;
+import dmagick.c.magickType;
+
+extern(C)
+{
+ enum DistortImageMethod
+ {
+ UndefinedDistortion,
+ AffineDistortion,
+ AffineProjectionDistortion,
+ ScaleRotateTranslateDistortion,
+ PerspectiveDistortion,
+ PerspectiveProjectionDistortion,
+ BilinearForwardDistortion,
+ BilinearDistortion = BilinearForwardDistortion,
+ BilinearReverseDistortion,
+ PolynomialDistortion,
+ ArcDistortion,
+ PolarDistortion,
+ DePolarDistortion,
+ BarrelDistortion,
+ BarrelInverseDistortion,
+ ShepardsDistortion,
+ SentinelDistortion
+ }
+
+ enum SparseColorMethod
+ {
+ UndefinedColorInterpolate = DistortImageMethod.UndefinedDistortion,
+ BarycentricColorInterpolate = DistortImageMethod.AffineDistortion,
+ BilinearColorInterpolate = DistortImageMethod.BilinearReverseDistortion,
+ PolynomialColorInterpolate = DistortImageMethod.PolynomialDistortion,
+ ShepardsColorInterpolate = DistortImageMethod.ShepardsDistortion,
+
+ VoronoiColorInterpolate = DistortImageMethod.SentinelDistortion
+ }
+
+ Image* DistortImage(const Image*, const DistortImageMethod, const size_t, const double*, MagickBooleanType, ExceptionInfo* exception);
+ Image* SparseColorImage(const Image*, const ChannelType, const SparseColorMethod, const size_t, const double*, ExceptionInfo*);
+}