2007.07.27 17:44 "[Tiff] How to create a 200x100 dpi TIFF file?", by mohamad zeinali

2007.07.27 17:53 "Re: [Tiff] How to create a 200x100 dpi TIFF file?", by Toby Thain

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!

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