Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx008.isp.belgacom.be (inmx008.isp.belgacom.be [195.238.3.88])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i81DvT12026417
        for <joris.at.lebbeke@skynet.be>; Wed, 1 Sep 2004 15:57:29 +0200
        (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 inmx008.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i81Dunbi031982
        for <joris.at.lebbeke@skynet.be>; Wed, 1 Sep 2004 15:56:51 +0200
        (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 3762C28B324; Wed,  1 Sep 2004 09:56:35 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205])
	by xserve.flids.com (Postfix) with ESMTP id 8A84428B2FD
	for <tiff@remotesensing.org>; Wed,  1 Sep 2004 09:56:32 -0400 (EDT)
Received: from pobox.com (H156.C195.tor.velocet.net [216.138.195.156])
	by sabre.velocet.net (Postfix) with ESMTP
	id 16201138DC5; Wed,  1 Sep 2004 09:55:53 -0400 (EDT)
Message-ID: <4135D4E9.1050005@pobox.com>
Date: Wed, 01 Sep 2004 09:55:53 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: poom <poom@kosugi-msoft.jp>
Subject: Re: [Tiff] DPI  setting
References: <F1B5069DD740FB48A47F9D042A3A3CF20A0F14@mail.cre8tiv.net>
In-Reply-To: <F1B5069DD740FB48A47F9D042A3A3CF20A0F14@mail.cre8tiv.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Cc: tiff@remotesensing.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>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 87df5926564495833d73ce90603c9e03


> -----Original Message-----
> From: tiff-bounces@remotesensing.org
> [mailto:tiff-bounces@remotesensing.org] On Behalf Of poom
> Sent: 01 September 2004 06:24
> To: tiff@remotesensing.org
> Subject: [Tiff] DPI setting
> 
> Hi,
>     Now I can generate TIFF file .However,when I  check my tiff file
> with photoshop,my picture's DPI value is strange!  
>     On setting tag ,I setted like this.
> 
>    TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, imageW);
>    TIFFSetField(tif, TIFFTAG_IMAGELENGTH, imageH);
>    TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8,8,8);

Poom,

On an unrelated point, I believe you are only supposed to pass a single
value when setting TIFFTAG_BITSPERSAMPLE.

eg.
      TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8 );

Best regards,

-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

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