物理尺寸 转换为 像素

m_iWidth = sWidth*96/25.4;//物理宽度转换为像素 物理尺寸单位mm毫米

m_iHeight = dHeight*96/25.4;

原文地址:https://www.cnblogs.com/oltra/p/6141345.html