*profile;
int
- image_matte,
num_passes,
pass;
y;
MagickBooleanType
+ image_matte,
+ matte,
+
ping_have_color,
ping_have_PLTE,
ping_have_bKGD,
unsigned char
*png_pixels;
- unsigned int
- matte;
-
volatile int
ping_bit_depth,
ping_color_type,
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" image->rows=%.20g",(double) image->rows);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
- " image_matte=%.20g",(double) image->matte);
+ " image->matte=%.20g",(double) image->matte);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" image->depth=%.20g",(double) image->depth);
image_depth=ping_bit_depth;
ping_num_trans=0;
- if (matte)
+ if (matte != MagickFalse)
{
/*
Identify which colormap entry is transparent.
" ping_bit_depth: %.20g",(double) ping_bit_depth);
}
- if (matte)
+ if (matte != MagickFalse)
{
if (mng_info->IsPalette)
{
if ((mng_info->IsPalette) &&
mng_info->write_png_colortype-1 != PNG_COLOR_TYPE_PALETTE &&
- ImageIsGray(image) && (!image_matte || image_depth >= 8))
+ ImageIsGray(image) && (image_matte == MagickFalse || image_depth >= 8))
{
size_t one=1;
*/
ping_color_type=(png_byte) PNG_COLOR_TYPE_PALETTE;
- if (mng_info->have_write_global_plte && !matte)
+ if (mng_info->have_write_global_plte && matte == MagickFalse)
{
png_set_PLTE(ping,ping_info,NULL,0);
ping_num_trans=0;
- if (matte)
+ if (matte != MagickFalse)
{
/*
* Set up trans_colors array.
"Cannot write image with defined PNG:bit-depth or PNG:color-type.");
}
- if (image_matte && !image->matte)
+ if (image_matte != MagickFalse && image->matte == MagickFalse)
{
/* Add an opaque matte channel */
image->matte = MagickTrue;
!mng_info->write_png32) &&
(mng_info->IsPalette ||
(image_info->type == BilevelType)) &&
- !image_matte && ImageIsMonochrome(image))
+ image_matte == MagickFalse && ImageIsMonochrome(image))
{
/* Palette, Bilevel, or Opaque Monochrome */
register const PixelPacket
{
if ((!mng_info->write_png8 && !mng_info->write_png24 &&
!mng_info->write_png32) &&
- (image_matte ||
+ (image_matte != MagickFalse ||
(ping_bit_depth >= MAGICKCORE_QUANTUM_DEPTH)) &&
(mng_info->IsPalette) && ImageIsGray(image))
{