Lines 349-355
unsigned char * VSImage::ReadPNG()
Link Here
|
349 |
png_set_palette_to_rgb(png_ptr); |
349 |
png_set_palette_to_rgb(png_ptr); |
350 |
|
350 |
|
351 |
if (this->img_color_type == PNG_COLOR_TYPE_GRAY && this->img_depth < 8) |
351 |
if (this->img_color_type == PNG_COLOR_TYPE_GRAY && this->img_depth < 8) |
352 |
png_set_gray_1_2_4_to_8(png_ptr); |
352 |
png_set_expand_gray_1_2_4_to_8(png_ptr); |
353 |
|
353 |
|
354 |
png_set_expand (png_ptr); |
354 |
png_set_expand (png_ptr); |
355 |
png_read_update_info (png_ptr,info_ptr); |
355 |
png_read_update_info (png_ptr,info_ptr); |