png_get_sRGB

Name

png_get_sRGB -- get the rendering intent for given image

Synopsis

#include <png.h>

png_uint_32 png_get_sRGB(png_structp png_ptr, png_infop info_ptr, int * srgb_intent);

Description

png_get_sRGB() shall return the rendering intent of an image to *srgb_intent if the sRGB chunk information is valid for the image.

Return Value

PNG_INFO_sRGB - if png_ptr, info_ptr, srgb_intent are not NULL and sRGB chunk information is valid 0 - otherwise.