我用的是API函数[System.Runtime.InteropServices.DllImportAttribute("gdi32.dll")]
private static extern uint GetPixel( IntPtr hdc, int x, int y );Graphics g = ctrl.CreateGraphics();
IntPtr myhdc=new IntPtr();
myhdc = g.GetHdc();
int c = (int)GetPixel( myhdc, j, i );
Color color = Color.FromArgb( (byte)c, (byte)(c>>8), (byte)(c>>16) );
private static extern uint GetPixel( IntPtr hdc, int x, int y );Graphics g = ctrl.CreateGraphics();
IntPtr myhdc=new IntPtr();
myhdc = g.GetHdc();
int c = (int)GetPixel( myhdc, j, i );
Color color = Color.FromArgb( (byte)c, (byte)(c>>8), (byte)(c>>16) );
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货