A4紙的尺寸是210mm*297mm,也就是21.0cm*29.7cm,而1英寸=2.54cm,如果屏幕DPI分辨率為72像素/英寸,換算一下:相當(dāng)于1cm可呈現(xiàn) (72px/2.54cm) = 28.34px
下面是一些常用分辨率下A4紙?jiān)谄聊簧系南袼爻叽纾?/strong>
分辨率是72像素/英寸時(shí),A4紙的尺寸的圖像的像素是595×842;
分辨率是96像素/英寸時(shí),A4紙的尺寸的圖像的像素是794×1123;(默認(rèn))
分辨率是120像素/英寸時(shí),A4紙的尺寸的圖像的像素是1487×2105;
分辨率是150像素/英寸時(shí),A4紙的尺寸的圖像的像素是1240×1754;
分辨率是300像素/英寸時(shí),A4紙的尺寸的圖像的像素是2480×3508;
其他的大小,一般標(biāo)準(zhǔn)印刷300dpi時(shí):
A4紙的尺寸的圖像的像素是2480×3508;
A3紙的尺寸的圖像的像素是4960×3508;
B3紙的尺寸的圖像的像素是3248×4300;
B4紙的尺寸的圖像的像素是3248×2150。
注:win7環(huán)境下如何查看自己顯示器的DPI,見(jiàn)下圖
為了方便換算,寫(xiě)了一段簡(jiǎn)單的代碼:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <!doctype html> < html > < head > < title >厘米轉(zhuǎn)像素</ title > < script type = "text/javascript" > function convert(){ var dpi = document.getElementById("DPI"); var cm = document.getElementById("txtCM"); var px = (parseFloat(dpi.value)/2.54)*parseFloat(cm.value); px = px.toFixed(3); document.getElementById("txtPX").value=px; } </ script > </ head > < body > CM: < input type = "text" id = "txtCM" value = "1" /> DPI: < input type = "text" id = "DPI" value = "96" /> PX: < input type = "text" id = "txtPX" /> < input type = "button" value = "計(jì)算" onclick = "return convert();" /> </ body > </ html > |
聯(lián)系客服