png_set_sRGB_gAMA_and_cHRM

Name

png_set_sRGB_gAMA_and_cHRM -- set rendering intent, gamma values, and CIE chromaticities of a PNG file

Synopsis

#include <png.h>

void png_set_sRGB_gAMA_and_cHRM(png_structp png_ptr, png_infop info_ptr, int srgb_intent);

Description

This interface shall set the rendering intent, gamma values, and CIE chromaticities of a PNG file.

The parameter png_ptr shall specify the PNG file.

The parameter info_ptr shall specify the PNG info structure.

The parameter srgb_intent shall specify the rendering intent. Because the sRGB chunk is present, the pixel data uses the sRGB color space. This interface shall also write gAMA and cHRM chunks with values consistent with sRGB.