2007.07.27 20:49 "[Tiff] Well, How to create a 200x100dpi Tiff file programmatically?", by mohamad zeinali

2007.07.30 08:26 "Re: [Tiff] Well, How to create a 200x100dpi Tiff file programmatically?", by mikk

You really do need to RTFM (such as the TIFF spec, along with libtiff documentation).

One starting point: http://www.awaresystems.be/imaging/tiff/faq.html#q4

--Toby

The problem is that the spec is not very accurate on that.

As I discussed this issue on this mailing list some time ago (May 2007) with Joris, when using Borland compilers you have to pass argument of type Double to set the values for tags TIFFTAG_XRESOULTION and TIFFTAG_YRESOLUTION, although the spec says that these should be passed as float (or Single - the Delphi equivalent).

So, Mohhamad, you have to try to use local variables of type Double as arguments for TIFFSetField.

Hope this helps

Kind regards,

mikk