2004.11.04 06:42 "[Tiff] N TIFFTAG_TRANSFERFUNCTION", by Kai-Uwe Behrmann

2004.11.04 08:21 "Re: [Tiff] N TIFFTAG_TRANSFERFUNCTION", by Kai-Uwe Behrmann

Thanks, have found it. Testing of the pointers for zero should do.

if (TIFFGetField (tiff, TIFFTAG_TRANSFERFUNCTION,
                  &r_uint16, &g_uint16, &b_uin16) )
    if (r_uin16)
        // there is at least one kurve
    if (r_uint16 && g_uin16 && b_uint16)
        // there are 3 curves

regards

Kai-Uwe Behrmann
                                + imaging development / panoramas
                                + color management
                                + email: ku.b@gmx.de