标签:handle bsp returns turn 控件 hwnd top stop rgba
/// <summary> /// 毫米转像素 高度 /// </summary> /// <param name="length"></param> /// <param name="frmHandle">当前窗口/控件句柄</param> /// <returns></returns> public static float MillimetersToPixelsHeight(this float length, IntPtr frmHandle) { Graphics g = Graphics.FromHwnd(frmHandle); return length * (g.DpiY / 25.4f); }
标签:handle bsp returns turn 控件 hwnd top stop rgba
原文地址:https://www.cnblogs.com/yuanshuo/p/14282916.html