2004.11.18 18:05 "[Tiff] Using TIFFGetField to get a "Rational"", by Stephen Billard

2004.11.18 22:30 "Re: [Tiff] Using TIFFGetField to get a "Rational"", by Joris Van Damme

Bon soir Eric,

Yes, here it is:

    case TIFFTAG_XRESOLUTION:
            *va_arg(ap, float*) = td->td_xresolution;
            break;
    case TIFFTAG_YRESOLUTION:
            *va_arg(ap, float*) = td->td_yresolution;
            break;

So you should pass a float* to TIFFGetField.

Very usefull. Please consider posting it to the list, instead of posting it only to my private e-mail address. You can do this by either

Otherwise, your usefull remark is just wasted.

Thanks,

Joris