png_set_gamma

Name

png_set_gamma -- transform the image from file gamma to screen gamma

Synopsis

#include <png.h>

void png_set_gamma(png_structp png_ptr, double screen_gamma, double file_gamma);

Description

png_set_gama() shall set the transformation for gamma correction of the PNG file based on the screen gamma i.e. the display exponent. The gamma transformation may be turned off later if no semitransparent entries are present in the tRNS array for palette images.