Received: from mailgate002.isp.belgacom.be (mailgate002.isp.belgacom.be [195.238.6.87])
	by maildelivery016.isp.belgacom.be (Postfix) with ESMTP id 82F5C55804E
	for <joris.at.lebbeke@skynet.be>; Fri, 27 Jul 2007 20:08:12 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 27 Jul 2007 20:08:11 +0200
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 l6RHrHmI023470;
	Fri, 27 Jul 2007 13:53:26 -0400
Received: from toronto2.smartgames.ca (toronto2.smartgames.ca [204.15.192.18])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l6RHrAiG023467
	for <tiff@lists.maptools.org>; Fri, 27 Jul 2007 13:53:11 -0400
Received: from [10.143.176.18] (unknown [10.143.176.18])
	by toronto2.smartgames.ca (Postfix) with ESMTP id 30BD9D0C;
	Fri, 27 Jul 2007 13:55:25 -0400 (EDT)
In-Reply-To: <7e3058f70707271044y6fe14f34i8fbf988fee54ddb8@mail.gmail.com>
References: <7e3058f70707271044y6fe14f34i8fbf988fee54ddb8@mail.gmail.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <2919364D-D3E3-473D-B383-75DEC558154A@smartgames.ca>
Content-Transfer-Encoding: 7bit
From: Toby Thain <toby@smartgames.ca>
Subject: Re: [Tiff] How to create a 200x100 dpi TIFF file?
Date: Fri, 27 Jul 2007 14:53:11 -0300
To: "mohamad zeinali" <delphiboy@gmail.com>
X-Mailer: Apple Mail (2.752.2)
Cc: tiff@lists.maptools.org
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/mailman/private/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.000026a4
X-MSP-STORE: Fri, 27 Jul 2007 20:08:12 +0200
Status: RO


On 27-Jul-07, at 2:44 PM, mohamad zeinali wrote:

> Hi there,
> I want to make a TIFF file from a TBitmap. I read the thread :  
> http://www.asmail.be/msg0054998186.html
>
> It helped a lot, but I need my file to be Fax Group 3 and also with  
> 200 dpi horizontal resolution and 100dpi vertical resolution. I  
> know how to make it G3 but I have a headache with resolution.
> I tried XRESOLUTION  and YRESOLUTION tags without any luck.

That's how it's done, however.

TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
TIFFSetField(tif, TIFFTAG_XRESOLUTION, 200.);
TIFFSetField(tif, TIFFTAG_YRESOLUTION, 100.);


>
> Please help me to solve this issue!
>
> Thanks in advance.
>
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

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