What is difference in between the b.Height and b.Width properties and the b.HorizontalResolution and b.VerticalResolution in C#?
Bitmap b = new Bitmap(@"foo.bmp");
For my sample, Height = 65, Width = 375, HorizontalResolution = VerticalResolution = 150.01239 . MSDN says height and width are in pixels, but the HorizontalResolution and the VerticalResolution are pixel per inch. So, does that mean that is the dpi at which this image was scanned from a scanner for example? Or is this something else?
The context of the question is the following: I would like to scan a signature and show in it on an asp.net page as an image in a form. The form is a standard government form with clearly defined space for the siganture. What considerations should I take into account when I scan the image so that it displays without any fuzziness when I see it in the browser and when I print the web-page.
What I don't understand is if all image formats store (a) the pixel size of the image (height/width) that the browser will display/resize in the image tag and (b) some other dpi equivalent that the printer will use to print? If not what determines the image size on a printed paper?