Return-Path: <tiff-bounces@lists.maptools.org>
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx011.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j6L3NFhn015113
        for <joris.at.lebbeke@skynet.be>; Thu, 21 Jul 2005 05:23:15 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j6L3MvlT019212;
	Wed, 20 Jul 2005 23:22:59 -0400
Received: from outmx025.isp.belgacom.be (outmx025.isp.belgacom.be
	[195.238.2.49])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id j6L3MGao019201
	for <tiff@lists.maptools.org>; Wed, 20 Jul 2005 23:22:16 -0400
Received: from outmx025.isp.belgacom.be (localhost [127.0.0.1])
	by outmx025.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with
	ESMTP id j6L3H97s002516
	for <tiff@lists.maptools.org>; Thu, 21 Jul 2005 05:17:09 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (84-171.245.81.adsl.skynet.be [81.245.171.84])
	by outmx025.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP
	id j6L3H2vT002455
	for <tiff@lists.maptools.org>; Thu, 21 Jul 2005 05:17:03 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <003501c58da2$b0fbaf70$54abf551@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "TIFF mailing list" <tiff@lists.maptools.org>
References: <200507061023.j66AN7K11797@dtagbrg1.telefax400.de>
Subject: Re: [Tiff] question of understanding / D7 and Var-Types
Date: Thu, 21 Jul 2005 05:16:34 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/pipermail/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.0000087d
X-MSP-STORE: Thu, 21 Jul 2005 05:23:20 +0200
Status:   

> " FirstPageYReso,FirstPageXReso: single; "
>   TIFFSetField(tifbild, TIFFTAG_XRESOLUTION, FirstPageXReso);
>   TIFFSetField(tifbild, TIFFTAG_YRESOLUTION, FirstPageYReso);
>
> just to store the value.

Matthias his problem got solved when we remembered

http://www.asmail.be/msg0055048683.html

Seems that we need Single to read the resolution tags with TIFFGetField, and a
variable of type Double (as opposed to a direct value, or a variable of other
type) to write with TIFFSetField. So the problem is solved on a trial-and-error
basis. It's strange though, the TIFFSetField man page says TIFFSetField expects
a float for setting the resolution tags, and this is equivalent to a Delphi
Single, not a Double. And it's also weird that a direct value doesn't work. If
someone has a more thorough understanding of why exactly, we would appreciate
more insight.



Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
