From a8cc895b17ab2304a6b4798c4bcfc671cce15b65 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 27 Mar 2011 23:34:56 +0200 Subject: AcquireImage already sets these to there defaults of 72 --- dmagick/Image.d | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dmagick/Image.d b/dmagick/Image.d index d644699..a5f28b4 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -597,14 +597,8 @@ class Image } Geometry density() const { - ssize_t width = 72; - ssize_t height = 72; - - if ( imageRef.x_resolution > 0 ) - width = cast(ssize_t)rndtol(imageRef.x_resolution); - - if ( imageRef.y_resolution > 0 ) - height = cast(ssize_t)rndtol(imageRef.y_resolution); + ssize_t width = cast(ssize_t)rndtol(imageRef.x_resolution); + ssize_t height = cast(ssize_t)rndtol(imageRef.y_resolution); return Geometry(width, height); } -- cgit v1.2.3