summaryrefslogtreecommitdiff
path: root/dmagick/Image.d
diff options
context:
space:
mode:
authorMike Wey2011-02-28 23:48:18 +0100
committerMike Wey2011-02-28 23:48:18 +0100
commit29427aa46819561111c1ce31014680f32c0dcab3 (patch)
tree20dfcc3beee6697c5dad9e2a22498005a0a82ae1 /dmagick/Image.d
parent846bd1de37e9dfbbcf33f21d86e755ac833c4e5d (diff)
Add versions for different Quantum depths
Diffstat (limited to 'dmagick/Image.d')
-rw-r--r--dmagick/Image.d9
1 files changed, 9 insertions, 0 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index aadeb17..7fd288e 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -43,6 +43,15 @@ class Image
read(filename);
}
+ this(Geometry size, Color color)
+ {
+ options = new Options();
+ options.size = size;
+
+ //Use read to create a cnavas with the spacified color.
+ read( "canvas:"~ color.toString() );
+ }
+
void read(string filename)
{
options.filename = filename;