diff options
| author | Mike Wey | 2011-10-30 19:27:13 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-10-30 19:27:13 +0100 |
| commit | c4a9fb376475c631a185a340d0cc6fabd9b3d0e3 (patch) | |
| tree | 3723c20c82d516f3c52cc6b11ddffc226f61b41f /dmagick/c/distort.d | |
| parent | e2b7ac4bdd423f8fd658db359ca9d0ed800b289f (diff) | |
All symbos from the headers used by DMagick should now be documented.
Diffstat (limited to 'dmagick/c/distort.d')
| -rw-r--r-- | dmagick/c/distort.d | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dmagick/c/distort.d b/dmagick/c/distort.d index 371d83d..6246ed8 100644 --- a/dmagick/c/distort.d +++ b/dmagick/c/distort.d @@ -277,15 +277,48 @@ extern(C) }()); } + /** + * Determines how to fill intervening colors. + */ enum SparseColorMethod { + /** */ UndefinedColorInterpolate = DistortImageMethod.UndefinedDistortion, + + /** + * three point triangle of color given 3 points. Giving only 2 points + * will form a linear gradient between those points. The gradient + * generated extends beyond the triangle created by those 3 points. + */ BarycentricColorInterpolate = DistortImageMethod.AffineDistortion, + + /** + * Like barycentric but for 4 points. Less than 4 points fall back + * to barycentric. + */ BilinearColorInterpolate = DistortImageMethod.BilinearReverseDistortion, + + /** */ PolynomialColorInterpolate = DistortImageMethod.PolynomialDistortion, + + /** + * Colors points biased on the ratio of inverse distance squared. + * Generating spots of color in a sea of the average of colors. + */ ShepardsColorInterpolate = DistortImageMethod.ShepardsDistortion, + /** + * Simply map each pixel to the to nearest color point given. + * The result are polygonal cells of solid color. + */ VoronoiColorInterpolate = DistortImageMethod.SentinelDistortion, + + /** + * Colors points biased on the ratio of inverse distance. + * This generates sharper points of color rather than rounded spots + * of ShepardsColorInterpolate Generating spots of color in a sea + * of the average of colors. + */ InverseColorInterpolate } |
