#include <png.h>
png_byte png_get_color_type(png_structp png_ptr, png_infop info_ptr);
png_byte png_get_color_type
Returns the image color type.
Returns 0 if png_ptr or info_ptr is NULL, color_type otherwise.