How to Produce Physical Dimension of an Image drawn using Java

三世轮回 提交于 2019-11-29 18:52:24

You need to convert you centimeter value to inches, so you can obtain the Dots Per Inch

1 cm = 0.393700787 inches
50 cm * 0.393700787 inches = 19.68503935 inches
19.68503935 * 400 = 7874.01574 pixels

50cm with 400 DPI are: 50/2,54*400 = 7874 Pixels I recommend png or gif (gif only for <= 255 colors)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!