case 'a':
case 'A':
{
- if (LocaleCompare(keyword,"alpha-color") == 0)
- {
- (void) QueryColorCompliance(options,AllCompliance,
- &image->alpha_color,exception);
- break;
- }
if (LocaleCompare(keyword,"alpha-trait") == 0)
{
ssize_t
signature=(unsigned int) StringToUnsignedLong(options);
break;
}
+ if (LocaleCompare(keyword,"mattecolor") == 0)
+ {
+ (void) QueryColorCompliance(options,AllCompliance,
+ &image->matte_color,exception);
+ break;
+ }
if (LocaleCompare(keyword,"maximum-error") == 0)
{
image->error.normalized_maximum_error=StringToDouble(
/*
Create image colormap.
*/
- image->colormap=(PixelInfo *) AcquireQuantumMemory(image->colors+1,
- sizeof(*image->colormap));
- if (image->colormap == (PixelInfo *) NULL)
+ if (AcquireImageColormap(image,image->colors) == MagickFalse)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
if (image->colors != 0)
{