Rex,
>Thanks for the reply. Do you know how many pixels there are in an inch?
Images can have all sorts of dpi resolution. Which format of file are you dealing with jpg, gif ? I think you can read the dpi setting out of the header part of the image. There are file specs out on the net and you can use the LLFF to read the header.