Lines 211-217
Link Here
|
211 |
// minimum of a byte per pixel |
211 |
// minimum of a byte per pixel |
212 |
if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) |
212 |
if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) |
213 |
{ |
213 |
{ |
214 |
png_set_gray_1_2_4_to_8(png_ptr); |
214 |
png_set_expand_gray_1_2_4_to_8(png_ptr); |
215 |
} |
215 |
} |
216 |
|
216 |
|
217 |
// add alpha if any alpha found |
217 |
// add alpha if any alpha found |
Lines 346-352
Link Here
|
346 |
// minimum of a byte per pixel |
346 |
// minimum of a byte per pixel |
347 |
if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) |
347 |
if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) |
348 |
{ |
348 |
{ |
349 |
png_set_gray_1_2_4_to_8(png_ptr); |
349 |
png_set_expand_gray_1_2_4_to_8(png_ptr); |
350 |
} |
350 |
} |
351 |
|
351 |
|
352 |
// add alpha if any alpha found |
352 |
// add alpha if any alpha found |