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.d33
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
}