png_get_gAMA

Name

png_get_gAMA -- get the gamma value for given image

Synopsis

#include <png.h>

png_uint_32 png_get_gAMA(png_structp png_ptr, png_infop info_ptr, double * file_gamma);

Description

Returns the gamma value of an image to "file_gamma" if the gAMA chunk information is valid for the image.

Return Value

PNG_INFO_gAMA - if png_ptr, info_ptr, file_gamma are not NULL and gAMA chunk information is valid 0 - otherwise.