From 7ab7b992f2815d047ac7cc9c7f8e2d6a191c1710 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 31 Jul 2011 17:33:46 +0200 Subject: The start of the ImageView implementation --- dmagick/Image.d | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dmagick/Image.d b/dmagick/Image.d index 2a987f4..9db5336 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -18,6 +18,7 @@ import core.sys.posix.sys.types; import dmagick.Color; import dmagick.Exception; import dmagick.Geometry; +import dmagick.ImageView; import dmagick.Options; import dmagick.Utils; @@ -2897,7 +2898,10 @@ class Image imageRef = ImageRef(image); } - //TODO: view. + ImageView view(Geometry area) + { + return ImageView(this, area); + } /** * Gradually shades the edges of the image by transforming the pixels -- cgit v1.2.3