Received: from [207.113.13.68] by phillip.cerious.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Wed, 30 Dec 1998 17:12:59 -0500
Received: from localhost (bin@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) with SMTP id RAA01884;
	Wed, 30 Dec 1998 17:01:27 -0500
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 30 Dec 1998 16:58:35 -0500
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.8.7/8.8.7) id QAA01851
	for tiff-outgoing; Wed, 30 Dec 1998 16:58:34 -0500
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from sgi.sgi.com (SGI.COM [192.48.153.1])
	by gate7.olympiakos.com (8.8.7/8.8.7) with ESMTP id QAA01848
	for <tiff@olympiakos.com>; Wed, 30 Dec 1998 16:58:30 -0500
Received: from srz-berlin.de (ns.srz-berlin.de [212.5.11.1]) 
	by sgi.sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id NAA04760
	for <tiff@sgi.com>; Wed, 30 Dec 1998 13:58:25 -0800 (PST)
	mail_from (H.Blischke@srz-berlin.de)
Received: from SunFrame1 (gw.srz-berlin.de [212.5.11.2])
	by srz-berlin.de (8.8.7/8.8.7) with SMTP id WAA30017;
	Wed, 30 Dec 1998 22:51:03 +0100
Message-ID: <368AA008.5070@srz-berlin.de>
Date: Wed, 30 Dec 1998 22:50:00 +0100
From: Helge Blischke <H.Blischke@srz-berlin.de>
Organization: SRZ BERLIN
X-Mailer: Mozilla 3.01Gold (X11; I; SunOS 5.5.1 sun4m)
MIME-Version: 1.0
To: Sim Zacks <szacks@imprsv.com>
CC: "'tiff@sgi.com'" <tiff@sgi.com>
Subject: Re: writing Xresolution and Yresolution
References: <01BE3406.DC15B1D0.szacks@imprsv.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@olympiakos.com

Sim Zacks wrote:
> 
> The Tiff 6.0 spec says that XResolution and Yresolution are Rationals which is 2 longs (one is divided by the other).
> I looked in Tiffcp, and TiffSplit and they are using floats  for a Rational.
> But when I try that , it doesn't seem to work. And when I look up what the tag is in other programs, it says 0.
> Is this a bug, or am I doing something wrong? How can I correctly set these fields?
> 
> Sim
If you use the TIFFSetField function for writing the tags, the function
internally should convert these floats into rationals. Probably it is
wise
to set the tag ResolutionUnit first.

Helge
-- 
H.Blischke@srz-berlin.de
H.Blischke@srz-berlin.com
H.Blischke@acm.org
