Return-Path: <tiff-bounces@lists.maptools.org>
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx006.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j6L3N5jm024346
        for <joris.at.lebbeke@skynet.be>; Thu, 21 Jul 2005 05:23:05 +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 j6L3MFu3019200;
	Wed, 20 Jul 2005 23:22:38 -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 j6L3MDIm019197
	for <tiff@lists.maptools.org>; Wed, 20 Jul 2005 23:22:13 -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 j6L3H8Lv002512
	for <tiff@lists.maptools.org>; Thu, 21 Jul 2005 05:17:08 +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 j6L3H2vR002455
	for <tiff@lists.maptools.org>; Thu, 21 Jul 2005 05:17:02 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <003401c58da2$b08483a0$54abf551@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "TIFF mailing list" <tiff@lists.maptools.org>
References: <200506210920.j5L9KJK32155@dtagbrg1.telefax400.de>
	<001601c57654$aafcecc0$b6a3f651@dfgrrxsknr4e>
Subject: Re: [Tiff] Tiff-Tags and Delphi7 / X and Y RESOLUTION / PHOTOMETRIC
Date: Thu, 21 Jul 2005 05:16:25 +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.0000087c
X-MSP-STORE: Thu, 21 Jul 2005 05:23:06 +0200
Status:   

I wrote:
> var
>   FirstPageXReso: Single;
> begin
>   TIFFGetField(OpenTiff,TIFFTAG_XRESOLUTION,@FirstPageXReso);
>
> >   TIFFSetField(tifbild, TIFFTAG_XRESOLUTION, FirstPageXReso);
> >   TIFFSetField(tifbild, TIFFTAG_YRESOLUTION, FirstPageYReso);
>
> For setting, too, Single values will be required.

This information was wrong. See also

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.


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/
