摘要: [DllImport("user32.dll")] private static extern IntPtr GetDC(IntPtr hwnd); [DllImport("gdi32.dll")] private static extern int GetPixel(IntPtr hdc, Poi 阅读全文
posted @ 2019-10-18 07:40 左正 阅读(996) 评论(0) 推荐(0) 编辑
摘要: // x,y 分别为x轴,y轴坐标 返回System.Drawing.Color 可以直接显示 public System.Drawing.Color GetPixelColor(int x, int y) { IntPtr hdc = GetDC(IntPtr.Zero); uint pixel 阅读全文
posted @ 2019-10-18 07:40 左正 阅读(1471) 评论(0) 推荐(0) 编辑