diff options
| author | Mike Wey | 2011-01-08 17:48:30 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-01-08 17:48:30 +0100 |
| commit | cbac78bbec726017355cb455a776f193e7fc3022 (patch) | |
| tree | a41c564c7ef5aec9dd2b18e58e94b213193044be /dmagick/c/distort.d | |
initial checkin
Diffstat (limited to 'dmagick/c/distort.d')
| -rw-r--r-- | dmagick/c/distort.d | 43 |
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*); +} |
