Intri pe site-ul asta si scrii datele display-ului tau http://members.ping.de/~sven/dpi.html
Eu de exemplu am un monitor de 22 inch cu rezolutie Full HD (1920x1080) si are un PPI de 100.13.
Transformare Pixeli in Inch si CM
[code]Width = ImgW / Dpi
Height = ImgH / Dpi
Inch_W = Math.Round(Width*100) / 100
Inch_H = Math.Round(Height*100) / 100
CM_W = Math.Round((Inch_W*2.54)*100) / 100
CM_H = Math.Round((Inch_H*2.54)*100) / 100[/code]
Transformare Inch in Pixeli
[code]Width = ImgW * Dpi
Height = ImgH * Dpi
Pixel_W = Math. Ceil(Width)
Pixel_H = Math. Ceil(Height)[/code]
Transformare CM in Pixeli
[code]Inch_W = ImgW/2.54
Inch_H = ImgH/2.54
Width = ImgW * Dpi
Height = ImgH * Dpi
Pixel_W = Math. Ceil(Width)
Pixel_H = Math. Ceil(Height)[/code]
Butterfly007 întreabă:
YzuD întreabă: