1999.12.06 07:23 "Re: X & Y Resolution", by Rainer Wiesenfarth
I've tried to understand what Xresolution and Yresolution are from the tiff specification, but I still don't understand how I would go about deciding the values for these fields based on the number of pixels I have in my image. I know the value of the width and height, but is there any correlation between these and the above values?
Yes, simple mathematics:
width[pixel] = width[inch] * Xresolution[pixel/inch]
or
width[inch] = width[pixel] / Xresolution[pixel/inch]
Note that some applications do not read or use the resolution tags, but most should.
Rainer
-- Besuchen Sie bitte unsere neue Homepage http://www.inpho.de
-- Please visit our new home page http://www.inpho.de
-- -----------------------------------------------------------------
-- Dipl.-Inform. Rainer Wiesenfarth
-- Inpho GmbH E-mail: Rainer.Wiesenfarth@Inpho.de
-- Smaragdweg 1 Phone : +49 711 22881-20
-- 70174 Stuttgart Fax : +49 711 22881-11
-- Germany URL : http://www.inpho.de