MagickExportImagePixels & 16 bits 1555
Posted: 2010-12-03T22:43:52-07:00
Hi, I'm trying to convince ImageMagick to run MagickExportImagePixels yet instead of producing 32bits per pixel to product 16 bits in the form ARGB 1555
I had thought that doing this would do it, but it seems MagickExportImagePixels still wants to produce 32bits for each pixel.
const char *map = "ARGB";
MagickSetImageDepth(clone_wand,(size_t) 16);
status = MagickExportImagePixels(clone_wand,0,0,(size_t) w,(size_t) h,map,CharPixel,bitmapData);
I had thought that doing this would do it, but it seems MagickExportImagePixels still wants to produce 32bits for each pixel.
const char *map = "ARGB";
MagickSetImageDepth(clone_wand,(size_t) 16);
status = MagickExportImagePixels(clone_wand,0,0,(size_t) w,(size_t) h,map,CharPixel,bitmapData);