diff options
| author | Mike Wey | 2011-03-08 23:21:47 +0100 |
|---|---|---|
| committer | Mike Wey | 2011-03-08 23:21:47 +0100 |
| commit | 1dea39bbe43a0cf211f486c35a950d5e1a22cdc7 (patch) | |
| tree | 63dafcc71a524bc06adcc3553e404985066343b7 /dmagick/Geometry.d | |
| parent | 6da95a9a211511b17f8bf2ada1b6451623531ee3 (diff) | |
Add some of the Image properties and functions
Diffstat (limited to 'dmagick/Geometry.d')
| -rw-r--r-- | dmagick/Geometry.d | 8 |
1 files changed, 8 insertions, 0 deletions
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. */ |
