summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Wey2011-09-11 12:00:55 +0200
committerMike Wey2011-09-11 12:00:55 +0200
commit14661cbd878c8493cdb77283356eafae3441ad32 (patch)
tree2da2c34acb1f009d6104c6e1cd09772d3853d236
parent3906ff000c4d3d693fd9281fe54f0fa507c594f4 (diff)
Doc fixes for DrawingContext
-rw-r--r--dmagick/DrawingContext.d9
1 files changed, 7 insertions, 2 deletions
diff --git a/dmagick/DrawingContext.d b/dmagick/DrawingContext.d
index a409b3b..0eeff96 100644
--- a/dmagick/DrawingContext.d
+++ b/dmagick/DrawingContext.d
@@ -337,6 +337,9 @@ class DrawingContext
/**
* Pattern to use when filling drawn objects.
+ *
+ * Within the delegate, call other drawing primitive methods (rectangle,
+ * polygon, text, etc.) to define the pattern.
*/
void fill(size_t x, size_t y, size_t width, size_t height, void delegate(DrawingContext path) pattern)
{
@@ -711,6 +714,9 @@ class DrawingContext
/**
* Pattern to use when filling drawn objects.
+ *
+ * Within the delegate, call other drawing primitive methods (rectangle,
+ * polygon, text, etc.) to define the pattern.
*/
void stroke(size_t x, size_t y, size_t width, size_t height, void delegate(DrawingContext path) pattern)
{
@@ -862,7 +868,6 @@ class DrawingContext
throw new DrawException("Undefined Align type.");
operations ~= format(" text-align %s", to!(string)(type)[0 .. $-5]);
-
}
/**
@@ -1001,7 +1006,7 @@ class DrawingContext
}
/**
- *
+ * This defines a Gradient used when drawing.
*/
struct Gradient
{