png_set_cHRM

Name

png_set_cHRM -- set CIE chromacities and referenced white point for given image

Synopsis

#include <png.h>

void png_set_cHRM(png_structp png_ptr, png_infop info_ptr, double white_x, double white_y, double red_x, double red_y, double green_x, double green_y, double blue_x, double blue_y);

Description

png_set_cHRM() shall set the CIE x,y chromaticities of the red, green and blue display primaries for the image and the referenced white point. The values must range from 0 to 21474.83 both inclusive.

Errors

png_set_cHRM() shall report a non-fatal error and exit if any of the chormacity values lies outside the range 0 to 21474.83.