|
|
To make life easier that's the libpng call for getting the
sRGB chunk information. For the sole purpose of gamma correction you can
safely ignore the value that is returned as sRGB_intent.
int sRGB_intent;
if (png_get_sRGB(png_ptr, png_inf, &sRGB_intent) != 0)
{
/* sRGB chunk is present, so we can ignore any gAMA chunk */
[,,,]
}
-Ive
Post a reply to this message
|
|