From a9a3d1e6e9922efa1559a775f8c0cd9adc7f199b Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sat, 15 Oct 2011 16:36:36 +0200 Subject: Gradient units arn't implemented in ImageMagick. --- dmagick/DrawingContext.d | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'dmagick/DrawingContext.d') diff --git a/dmagick/DrawingContext.d b/dmagick/DrawingContext.d index 477c390..ddd7333 100644 --- a/dmagick/DrawingContext.d +++ b/dmagick/DrawingContext.d @@ -1017,7 +1017,7 @@ struct Gradient private bool isDefined = false; GradientType type; - GradientUnits units; + //GradientUnits units; double x1, y1, x2, y2, radius; StopColor[] stopColors; @@ -1090,6 +1090,8 @@ struct Gradient return radial(xCenter, yCenter, xCenter, yCenter, radius); } + /+ + + gradient units arn't implemented in imageMagick. /** * Defines the coordinate system to use. */ @@ -1099,6 +1101,7 @@ struct Gradient return this; } + +/ /** * Define the color to use, and there offsets in the gradient. @@ -1139,8 +1142,10 @@ struct Gradient currentCount, x1, y1, x2, y2, radius); } + /+ if ( units != GradientUnits.Undefined ) operations ~= format(" gradient-units %s", units); + +/ foreach ( stop; stopColors ) { @@ -1202,6 +1207,9 @@ enum FontWeight : string Lighter = "lighter", /// Decreases weight by 100. } + +/+ + + gradient units arn't implemented in imageMagick. /** * Defines the coordinate system to use for Gradients. */ @@ -1239,3 +1247,4 @@ enum GradientUnits : string */ ObjectBoundingBox = "objectBoundingBox", } ++/ -- cgit v1.2.3