我正在做:
PhysicalParameters()
{
IntPtr DeskTopHWND = GetDesktopWindow();
IntPtr HDC = GetDC(DeskTopHWND);
int mmX = GetDeviceCaps(HDC, HORZSIZE);
int mmY = GetDeviceCaps(HDC, VERTSIZE);
int pxX = GetDeviceCaps(HDC, HORZRES);
int pxY = GetDeviceCaps(HDC, VERTRES);
ReleaseDC(DeskTopHWND, HDC);
double CoeffPIX_MM_X = 1.0 * mmX / pxX;
double CoeffPIX_MM_Y = 1.0 * mmY / pxY;
}
两者的结果都是 0.25
但我看到的(MS Word' WysiWyg )应该是 0.27
请解释一下题目。