summaryrefslogtreecommitdiff
path: root/dmagick/Image.d
diff options
context:
space:
mode:
authorMike Wey2011-08-07 20:47:02 +0200
committerMike Wey2011-08-07 20:47:02 +0200
commit0f4da1faa6813373f7795a1081a7160d5ead5983 (patch)
tree7a4d02e0f8978491931f3cf690a23059569efb16 /dmagick/Image.d
parent7a9174cc012e93fb0a4d15ef3dcf64f3695b829e (diff)
Remove the limitation of one Row per thread.
Also some bugfixes and unittests.
Diffstat (limited to 'dmagick/Image.d')
-rw-r--r--dmagick/Image.d8
1 files changed, 7 insertions, 1 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index 7c422fc..50c56a7 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -2905,8 +2905,14 @@ class Image
* Params:
* area = The area accessible through the view.
*/
- dmagick.ImageView.ImageView view(Geometry area = Geometry(cast(size_t)this.columns, cast(size_t)this.rows) )
+ dmagick.ImageView.ImageView view(Geometry area = Geometry.init )
{
+ if ( area == Geometry.init )
+ {
+ area.width = columns;
+ area.height = rows;
+ }
+
return new dmagick.ImageView.ImageView(this, area);
}