| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread1998.12.30 21:50 "Re: writing Xresolution and Yresolution", by Helge BlischkeSim Zacks wrote: > > The Tiff 6.0 spec says that XResolution and Yresolution are Rationals > which is 2 longs (one is divided by the other). > I looked in Tiffcp, and TiffSplit and they are using floats for a > Rational. > But when I try that , it doesn't seem to work. And when I look up what the > tag is in other programs, it says 0. > Is this a bug, or am I doing something wrong? How can I correctly set > these fields? > > Sim If you use the TIFFSetField function for writing the tags, the function internally should convert these floats into rationals. Probably it is wise to set the tag ResolutionUnit first. Helge -- H.Blischke@srz-berlin.de H.Blischke@srz-berlin.com H.Blischke@acm.org |
|||||||