diff options
Diffstat (limited to 'dmagick/Image.d')
| -rw-r--r-- | dmagick/Image.d | 9 |
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; |
