m_iWidth = sWidth*96/25.4;//物理宽度转换为像素 物理尺寸单位mm毫米 m_iHeight = dHeight*96/25.4; 转载于:https://www.cnblogs.com/oltra/p/6141345.html