(void) InterpolatePixelInfo(image,fx_info->view[i],image->interpolate,
point.x,point.y,&pixel,exception);
if ((strlen(p) > 2) && (LocaleCompare(p,"intensity") != 0) &&
- (LocaleCompare(p,"luminance") != 0) && (LocaleCompare(p,"hue") != 0) &&
- (LocaleCompare(p,"saturation") != 0) &&
+ (LocaleCompare(p,"luma") != 0) && (LocaleCompare(p,"luminance") != 0) &&
+ (LocaleCompare(p,"hue") != 0) && (LocaleCompare(p,"saturation") != 0) &&
(LocaleCompare(p,"lightness") != 0))
{
char
image->columns=tga_info.width;
image->rows=tga_info.height;
alpha_bits=(tga_info.attributes & 0x0FU);
- image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) ?
- BlendPixelTrait : UndefinedPixelTrait;
+ image->alpha_trait=(alpha_bits > 0) || (tga_info.bits_per_pixel == 32) ||
+ (tga_info.colormap_size == 32) ? BlendPixelTrait : UndefinedPixelTrait;
if ((tga_info.image_type != TGAColormap) &&
(tga_info.image_type != TGARLEColormap))
image->depth=(size_t) ((tga_info.bits_per_pixel <= 8) ? 8 :
break;
}
case 24:
- case 32:
{
/*
8 bits each of blue, green and red.
ReadBlobByte(image));
break;
}
+ case 32:
+ {
+ /*
+ 8 bits each of blue, green, red, and alpha.
+ */
+ pixel.blue=(MagickRealType) ScaleCharToQuantum((unsigned char)
+ ReadBlobByte(image));
+ pixel.green=(MagickRealType) ScaleCharToQuantum((unsigned char)
+ ReadBlobByte(image));
+ pixel.red=(MagickRealType) ScaleCharToQuantum((unsigned char)
+ ReadBlobByte(image));
+ pixel.alpha=(MagickRealType) ScaleCharToQuantum((unsigned char)
+ ReadBlobByte(image));
+ break;
+ }
}
image->colormap[i]=pixel;
}