png_get_color_type

Name

png_get_color_type -- return image color type

Synopsis

#include <png.h>

png_byte png_get_color_type(png_structp png_ptr, png_infop info_ptr);

Description

Returns the image color type.

Return Value

Returns 0 if png_ptr or info_ptr is NULL, color_type otherwise.