From 1dea39bbe43a0cf211f486c35a950d5e1a22cdc7 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Tue, 8 Mar 2011 23:21:47 +0100 Subject: Add some of the Image properties and functions --- dmagick/Geometry.d | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dmagick/Geometry.d') diff --git a/dmagick/Geometry.d b/dmagick/Geometry.d index afda819..e25a685 100644 --- a/dmagick/Geometry.d +++ b/dmagick/Geometry.d @@ -69,6 +69,14 @@ struct Geometry assert( geo.width == 595 && geo.height == 842); } + this(RectangleInfo rectangle) + { + this.width = rectangle.width; + this.height = rectangle.height; + this.xOffset = rectangle.x; + this.yOffset = rectangle.y; + } + /** * Initialize with width heigt and offsets. */ -- cgit v1.2.3