From c4a9fb376475c631a185a340d0cc6fabd9b3d0e3 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 30 Oct 2011 19:27:13 +0100 Subject: All symbos from the headers used by DMagick should now be documented. --- dmagick/c/distort.d | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'dmagick/c/distort.d') 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 } -- cgit v1.2.3