% Write X-Motif UIL Table. %
% %
% Software Design %
-% John Cristy %
+% Cristy %
% July 1992 %
% %
% %
-% Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2014 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
Include declarations.
*/
#include "MagickCore/studio.h"
+#include "MagickCore/attribute.h"
#include "MagickCore/blob.h"
#include "MagickCore/blob-private.h"
#include "MagickCore/cache.h"
status,
transparent;
- PixelInfo
- pixel;
-
MagickSizeType
number_pixels;
+ PixelInfo
+ pixel;
+
register const Quantum
*p;
status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
if (status == MagickFalse)
return(status);
- if (IsRGBColorspace(image->colorspace) == MagickFalse)
- (void) TransformImageColorspace(image,RGBColorspace);
+ (void) TransformImageColorspace(image,sRGBColorspace,exception);
transparent=MagickFalse;
i=0;
p=(const Quantum *) NULL;
Convert DirectClass to PseudoClass image.
*/
matte_image=(unsigned char *) NULL;
- if (image->matte != MagickFalse)
+ if (image->alpha_trait == BlendPixelTrait)
{
/*
Map all the transparent pixels.
/*
Define UIL color.
*/
- SetPixelInfoPacket(image,image->colormap+i,&pixel);
- pixel.colorspace=RGBColorspace;
+ pixel=image->colormap[i];
+ pixel.colorspace=sRGBColorspace;
pixel.depth=8;
- pixel.alpha=(MagickRealType) OpaqueAlpha;
+ pixel.alpha=(double) OpaqueAlpha;
GetColorTuple(&pixel,MagickTrue,name);
if (transparent != MagickFalse)
if (i == (ssize_t) (colors-1))
else
(void) FormatLocaleString(buffer,MaxTextExtent,
" color('%s',%s) = '%s'",name,
- GetPixelPacketIntensity(image->colormap+i) <
- ((Quantum) QuantumRange/2) ? "background" : "foreground",symbol);
+ GetPixelInfoIntensity(image->colormap+i) <
+ (QuantumRange/2) ? "background" : "foreground",symbol);
(void) WriteBlobString(image,buffer);
(void) FormatLocaleString(buffer,MaxTextExtent,"%s",
(i == (ssize_t) (colors-1) ? ");\n" : ",\n"));