AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia Delphi cm -> pixel umrechnen
Thema durchsuchen
Ansicht
Themen-Optionen

cm -> pixel umrechnen

Ein Thema von -NIP- · begonnen am 14. Okt 2005 · letzter Beitrag vom 16. Okt 2005
Antwort Antwort
Seite 2 von 2     12   
Benutzerbild von MarcoWarm
MarcoWarm

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

Re: cm -> pixel umrechnen

  Alt 15. Okt 2005, 11:05
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 )
Marco Warm
TUO
TheUnknownOnes.net
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#12

Re: cm -> pixel umrechnen

  Alt 15. Okt 2005, 15:13
Ich sags noch mal:
Zitat von Luckie:
Guck dir mal die API Funktion MSDN-Library durchsuchenSetMapMode an.
damit könnt ihr euch die ganze Umrechnerei sparen.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
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, 11: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
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#14

Re: cm -> pixel umrechnen

  Alt 16. Okt 2005, 22:24
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.
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:14 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz