Received: by cthulhu.engr.sgi.com (940707.SGI.8.6.9/911001.SGI)
	for tiff-list id MAA20022; Fri, 12 Aug 1994 12:08:06 -0700
Return-Path: <owner-tiff>
Received: from sgi.sgi.com by cthulhu.engr.sgi.com via ESMTP (940707.SGI.8.6.9/911001.SGI)
	for <tiff-relay@cthulhu.engr.sgi.com> id MAA20007; Fri, 12 Aug 1994 12:08:00 -0700
Received: from pixar.com by sgi.sgi.com via SMTP (940627.SGI.8.6.9/910110.SGI)
	for <tiff@sgi.com> id MAA06793; Fri, 12 Aug 1994 12:07:56 -0700
Received: from roger.pixar.com by pixar.com with SMTP id AA01629
  (5.65c/IDA-1.4.4 for <tiff@sgi.com>); Fri, 12 Aug 1994 12:06:22 -0700
Received: by roger.pixar.com (/\==/\ Smail3.1.25.1 #25.26)
	id <m0qZ1vW-0005CiC@roger.pixar.com>; Fri, 12 Aug 94 12:06 PDT
Message-Id: <m0qZ1vW-0005CiC@roger.pixar.com>
Date: Fri, 12 Aug 94 12:06 PDT
From: mccoy@pixar.com (Dan McCoy)
To: eric@hpbbn.bbn.hp.com, tiff@sgi.sgi.com
Subject: Re:  Help
Sender: owner-tiff@sgi.sgi.com
Precedence: bulk

>If I say
>
>    TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
>    TIFFSetField(tif, TIFFTAG_XRESOLUTION, 100);
>    TIFFSetField(tif, TIFFTAG_YRESOLUTION, 100);
> ...
>What's wrong?

Try saying:

    TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
    TIFFSetField(tif, TIFFTAG_XRESOLUTION, 100.0);
    TIFFSetField(tif, TIFFTAG_YRESOLUTION, 100.0);

Since TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION are rational tags,
they both take float arguments in TIFFSetField.

Dan McCoy        Pixar      mccoy@pixar.com

