Registriert seit: 1. Aug 2007
Ort: Ludwigshafen am Rhein
1.529 Beiträge
Delphi 7 Professional
|
Re: [GR32] How to get image resolution
9. Apr 2010, 21:28
To get the resolution in inches you need to know how to compute your inches. Some Images have 120 px/inch and some have 96 px/inch. I think, you can get this factor by reading it from its original file. If you create a Bitmap im your TBitmap32 (like Painting) you can choose a factor. Usually it'S 96 or 120.
Hope I could help.
Bernhard
EDIT: I've tested thin with MSPAINT and the result-image has a resolution of 96 px/inch (=dpi) (see attached screenshot)
Bernhard Iliacos intra muros peccatur et extra!
|