Return-Path: <tiff-bounces@remotesensing.org>
Received: from inav010.isp.belgacom.be (inav010.isp.belgacom.be [195.238.3.53])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id iAIJgD15009974
        for <joris.at.lebbeke@skynet.be>; Thu, 18 Nov 2004 20:42:13 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inas010.isp.belgacom.be (localhost [127.0.0.1])
        by inav010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id iAIJg85Z001394
        for <joris.at.lebbeke@skynet.be>; Thu, 18 Nov 2004 20:42:08 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from inmx015.isp.belgacom.be (inmx015.isp.belgacom.be [195.238.2.218])
        by inas010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id iAIJfp2A027738
        for <joris.at.lebbeke@skynet.be>; Thu, 18 Nov 2004 20:42:04 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx015.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id iAIJf4Xx007397
        for <joris.at.lebbeke@skynet.be>; Thu, 18 Nov 2004 20:41:09 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id CF91B48767C; Thu, 18 Nov 2004 14:40:37 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from mail.gmx.net (pop.gmx.net [213.165.64.20])
	by xserve.flids.com (Postfix) with SMTP id AC6CF487654
	for <tiff@remotesensing.org>; Thu, 18 Nov 2004 14:40:34 -0500 (EST)
Received: (qmail 15291 invoked by uid 65534); 18 Nov 2004 19:40:32 -0000
Received: from p508D8C98.dip0.t-ipconnect.de (EHLO gmx.de) (80.141.140.152)
	by mail.gmx.net (mp010) with SMTP; 18 Nov 2004 20:40:32 +0100
X-Authenticated: #3615077
Message-ID: <419CFA99.2050508@gmx.de>
Date: Thu, 18 Nov 2004 20:40:09 +0100
From: Ulf Zibis <Ulf.Zibis@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE;
	rv:1.4) Gecko/20030619 Netscape/7.1 (ax)
X-Accept-Language: de-de, de
MIME-Version: 1.0
To: tiff@remotesensing.org
Subject: Re: [Tiff] Using TIFFGetField to get a "Rational"
References: <000001c4cd99$393c9ae0$6401a8c0@stephen>
In-Reply-To: <000001c4cd99$393c9ae0$6401a8c0@stephen>
Cc: Stephen Billard <stephen@sbillard.org>
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============054383954668417278=="
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 3a1c14cf17e7665c18855f2b20583df6

This is a multi-part message in MIME format.
--===============054383954668417278==
Content-Type: multipart/alternative;
	boundary="------------010901010206080207030608"

This is a multi-part message in MIME format.
--------------010901010206080207030608
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

When I remember right, you get to values, and must interpret them as 
divident/divisor

hope, that helps...


Stephen Billard schrieb:

> I am new to LibTIFF. I want to get the ResolutionUnit, XResolution, 
> and YResolution from a TIFF file. I have no problem getting the 
> Resolution unit. (Although I did see a strange behavior. If I had not 
> initialized the variable that receives the ResolutionUnit value before 
> calling TIFFGetField, I did not get back the value. If I initialize 
> the variable to 0, I get back the correct unit.)
>  
> I am having no luck with the X & Y Resolutions. I suspect that I don't 
> know what kind of variable to receive the "Rational" result. I tried a 
> Real and got garbage back. What should I be using? (I get no errors 
> back from calling TIFFGetField.)
>  
> -Stephen
>  www.sbillard.org/Stephen <http://www.sbillard.org/Stephen>
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Tiff mailing list
>Tiff@remotesensing.org
>http://xserve.flids.com/mailman/listinfo/tiff
>  
>

--------------010901010206080207030608
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
When I remember right, you get to values, and must interpret them as
divident/divisor<br>
<br>
hope, that helps...<br>
<br>
<br>
Stephen Billard schrieb:<br>
<blockquote type="cite" cite="mid000001c4cd99$393c9ae0$6401a8c0@stephen">
  <meta http-equiv="Content-Type" content="text/html; ">
  <title>Message</title>
  <meta content="MSHTML 6.00.2900.2523" name="GENERATOR">
  <div><font face="Arial" size="2"><span class="625430018-18112004">I
am new to LibTIFF. I want to get the ResolutionUnit, XResolution, and
YResolution from a TIFF file. I have no problem getting the Resolution
unit. (Although I did see a strange behavior. If I had not initialized
the variable that receives the ResolutionUnit value before calling
TIFFGetField, I did not get back the value. If I initialize the
variable to 0, I get back the correct unit.)</span></font></div>
  <div>&nbsp;</div>
  <div><font face="Arial" size="2"><span class="625430018-18112004">I
am having no luck with the X &amp; Y Resolutions. I suspect that I
don't know what kind of variable to receive the "Rational" result. I
tried a Real and got garbage back. What should I be using? (I get no
errors back from calling TIFFGetField.)</span></font></div>
  <div>&nbsp;</div>
  <div align="left">
  <div align="left"><font face="Arial" size="2">-<font
 face="Brush Script MT" size="4">Stephen</font></font></div>
  <div align="left"><font face="Arial" size="2">&nbsp;<a
 href="http://www.sbillard.org/Stephen">www.sbillard.org/Stephen</a></font></div>
  </div>
  <div>&nbsp;</div>
  <pre wrap="">
<hr width="90%" size="4">
_______________________________________________
Tiff mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Tiff@remotesensing.org">Tiff@remotesensing.org</a>
<a class="moz-txt-link-freetext" href="http://xserve.flids.com/mailman/listinfo/tiff">http://xserve.flids.com/mailman/listinfo/tiff</a>
  </pre>
</blockquote>
</body>
</html>

--------------010901010206080207030608--



--===============054383954668417278==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff

--===============054383954668417278==--


