From d131ed5959a916a0180bdb561ef508f51e19d8a7 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 16 Oct 2011 19:40:07 +0200 Subject: Allow converting one color type to an other. --- dmagick/ImageView.d | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'dmagick/ImageView.d') diff --git a/dmagick/ImageView.d b/dmagick/ImageView.d index 4e967be..f23f23a 100644 --- a/dmagick/ImageView.d +++ b/dmagick/ImageView.d @@ -316,14 +316,6 @@ struct Pixels return new Color(pixels.ptr + pixel); } - /** - * Sync the pixels back to the image. The destructor does this for you. - */ - void sync() - { - SyncAuthenticPixelCacheNexus(image.imageRef, &nexus, DMagickExceptionInfo()); - } - ///ditto void opIndexAssign(Color color, size_t index) { @@ -357,6 +349,14 @@ struct Pixels this[i] = color; } + /** + * Sync the pixels back to the image. The destructor does this for you. + */ + void sync() + { + SyncAuthenticPixelCacheNexus(image.imageRef, &nexus, DMagickExceptionInfo()); + } + /** * Support using foreach on a row. */ -- cgit v1.2.3