summaryrefslogtreecommitdiff
path: root/MagickWand/pixel-wand.c
diff options
context:
space:
mode:
authorcristy <urban-warrior@git.imagemagick.org>2015-06-21 19:51:15 +0000
committercristy <urban-warrior@git.imagemagick.org>2015-06-21 19:51:15 +0000
commite7770e3ea028f871f602de46a9e0fc3f084c1736 (patch)
tree13f2956f23fecf19daa23797a1b4cef2009f5469 /MagickWand/pixel-wand.c
parent77405c2b97f4f715a875732aeeece5baced8c6a3 (diff)
downloadImageMagick-e7770e3ea028f871f602de46a9e0fc3f084c1736.tar.gz
Diffstat (limited to 'MagickWand/pixel-wand.c')
-rw-r--r--MagickWand/pixel-wand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MagickWand/pixel-wand.c b/MagickWand/pixel-wand.c
index b44df19f9..a6036901f 100644
--- a/MagickWand/pixel-wand.c
+++ b/MagickWand/pixel-wand.c
@@ -1266,6 +1266,8 @@ WandExport void PixelGetQuantumPacket(const PixelWand *wand,PixelInfo *packet)
packet->colorspace=wand->pixel.colorspace;
packet->depth=wand->pixel.depth;
packet->fuzz=wand->pixel.fuzz;
+ packet->count=wand->pixel.count;
+ packet->index=wand->pixel.index;
packet->alpha=(double) ClampToQuantum(wand->pixel.alpha);
packet->alpha_trait=wand->pixel.alpha_trait;
if (wand->pixel.colorspace == CMYKColorspace)
@@ -1285,7 +1287,6 @@ WandExport void PixelGetQuantumPacket(const PixelWand *wand,PixelInfo *packet)
packet->red=(double) ClampToQuantum(wand->pixel.red);
packet->green=(double) ClampToQuantum(wand->pixel.green);
packet->blue=(double) ClampToQuantum(wand->pixel.blue);
- packet->count=wand->pixel.count;
}
/*