Thema: Delphi cm -> pixel umrechnen

Einzelnen Beitrag anzeigen

Benutzerbild von MarcoWarm
MarcoWarm

Registriert seit: 10. Sep 2003
Ort: Großhennersdorf
532 Beiträge
 
Delphi 10.1 Berlin Professional
 
#13

Re: cm -> pixel umrechnen

  Alt 16. Okt 2005, 12:26
Zitat von Luckie:
Guck dir mal die API Funktion MSDN-Library durchsuchenSetMapMode an.
http://groups.google.de/group/micros...dc634da2ce7fff

Zitat:
Note that there is no guarantee that any mapping mode will take a line n units long and draw it as a precise distance on the screen. Maybe it will, maybe it won't. Unlike printers, you really don't know what the distance is on the screen. For example, suppose your resolution is 800x600. If the visual part of the display is 8 inches wide, then there will be 100 pixels per inch. If it is 16 inches wide, there will be 50 pixels per inch. Only some displays and some display cards report the monitor size, so it is not really fair to expect that if you are in MM_LOMETRIC that 100 units will draw a 1cm line if you were to hold a ruler up to the screen. You might, but someone else might not.
Marco Warm
TUO
TheUnknownOnes.net
  Mit Zitat antworten Zitat