Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi cm -> pixel umrechnen (https://www.delphipraxis.net/54974-cm-pixel-umrechnen.html)

MarcoWarm 15. Okt 2005 11:05

Re: cm -> pixel umrechnen
 
Zitat:

Zitat von xaromz
Windows geht prinzipiell von 96 DPI aus.

ganz genau....

Gründe, warum Windows die Maße nicht genau!!! (denn das ist es, was wir ja wollten) errechnen kann:

Die aktuelle Bildschirmdiagonale ist nicht bekannt.

d.h. bei 17", 18", 20" etc. Displays und einer Auflösung von 1024x768 bei jeweils 96DPI ergibt die Berechnung immer 27cm Bildschirmbreite assbach.de
-> ergo:
daß würde bedeuten, daß alle Displays gleich breit wären... und das ist ja nunmal nicht so. (Wers mir nicht glaubt: nachmessen ;) )

Luckie 15. Okt 2005 15:13

Re: cm -> pixel umrechnen
 
Ich sags noch mal:
Zitat:

Zitat von Luckie
Guck dir mal die API Funktion MSDN-Library durchsuchenSetMapMode an.

damit könnt ihr euch die ganze Umrechnerei sparen.

MarcoWarm 16. Okt 2005 11:26

Re: cm -> pixel umrechnen
 
Zitat:

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.

Luckie 16. Okt 2005 22:24

Re: cm -> pixel umrechnen
 
Das ist mir schon klar, nur ist es alle male besser als selber zu versuchen da was zusammenzufrickeln, was dann am Ende auch nicht besser ist.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:43 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz