summaryrefslogtreecommitdiff
path: root/dmagick/Image.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/Image.d')
-rw-r--r--dmagick/Image.d14
1 files changed, 12 insertions, 2 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d
index 86c2a5b..b68c220 100644
--- a/dmagick/Image.d
+++ b/dmagick/Image.d
@@ -25,6 +25,8 @@ import dmagick.ImageView;
import dmagick.Options;
import dmagick.Utils;
+version(Windows) import dmagick.internal.Windows;
+
//Import all translated c headers.
import dmagick.c.MagickCore;
@@ -1178,9 +1180,17 @@ class Image
*/
void display()
{
- DisplayImages(options.imageInfo, imageRef);
+ version(Windows)
+ {
+ Window win = new Window(this);
+ win.display();
+ }
+ else
+ {
+ DisplayImages(options.imageInfo, imageRef);
- DMagickException.throwException(&(imageRef.exception));
+ DMagickException.throwException(&(imageRef.exception));
+ }
}
/**