Einzelnen Beitrag anzeigen

Benutzerbild von rollstuhlfahrer
rollstuhlfahrer

Registriert seit: 1. Aug 2007
Ort: Ludwigshafen am Rhein
1.529 Beiträge
 
Delphi 7 Professional
 
#2

Re: [GR32] How to get image resolution

  Alt 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)
Miniaturansicht angehängter Grafiken
screenshot_777.png  
Bernhard
Iliacos intra muros peccatur et extra!
  Mit Zitat antworten Zitat