From cbac78bbec726017355cb455a776f193e7fc3022 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sat, 8 Jan 2011 17:48:30 +0100 Subject: initial checkin --- dmagick/c/distort.d | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 dmagick/c/distort.d (limited to 'dmagick/c/distort.d') 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*); +} -- cgit v1.2.3