From bedb90d2ed2f40531ec8e10b5bbf2f7ddff045f3 Mon Sep 17 00:00:00 2001 From: Mike Wey Date: Sun, 10 Jul 2011 17:15:42 +0200 Subject: Update headers to version 6.7.1 --- dmagick/Image.d | 50 +++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'dmagick/Image.d') diff --git a/dmagick/Image.d b/dmagick/Image.d index ba9b915..09572e7 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -1636,6 +1636,31 @@ class Image imageRef = ImageRef(image); } + /** + * Replaces the pixels in the specified area with pixel data + * from the supplied array. + * + * Params: + * area = Location in the image to store the pixels. + * pixels = An array of pixels defined by map. + * map = This character string can be any combination + * or order of R = red, G = green, B = blue, A = + * alpha, C = cyan, Y = yellow, M = magenta, and K = black. + * The ordering reflects the order of the pixels in + * the supplied pixel array. + */ + void importPixels(T)(Geometry area, T[] pixels, string map = "RGBA") + { + StorageType storage = getStorageType!(T); + + ImportImagePixels(imageRef, + area.xOffset, area.yOffset, + area.width, area.height, + toStringz(map), storage, pixels.ptr); + + DMagickException.throwException(&(imageRef.exception)); + } + /** * Adjusts the levels of an image by scaling the colors falling between * specified white and black points to the full available quantum range. @@ -1920,31 +1945,6 @@ class Image imageRef = ImageRef(image); } - /** - * Replaces the pixels in the specified area with pixel data - * from the supplied array. - * - * Params: - * area = Location in the image to store the pixels. - * pixels = An array of pixels defined by map. - * map = This character string can be any combination - * or order of R = red, G = green, B = blue, A = - * alpha, C = cyan, Y = yellow, M = magenta, and K = black. - * The ordering reflects the order of the pixels in - * the supplied pixel array. - */ - void importPixels(T)(Geometry area, T[] pixels, string map = "RGBA") - { - StorageType storage = getStorageType!(T); - - ImportImagePixels(imageRef, - area.xOffset, area.yOffset, - area.width, area.height, - toStringz(map), storage, pixels.ptr); - - DMagickException.throwException(&(imageRef.exception)); - } - /** * Read an Image by reading from the file or * URL specified by filename with the specified size. -- cgit v1.2.3