pictureBox1里面的颜色都是一样的,就是个控件,如果你不加图片,就是取到的颜色
解决方案 »
- 【求助】gmap的问题
- 最近新项目的需求问题
- 请教C#代码转换VB的2个问题,请指导
- datagridview中二次查询
- datacolumn的maxlength属性
- socket服务器
- 求助:想在写完一个dll之后,同时动态的生成一个象msdn那样的帮助文档,让使用该dll的人能更好的使用我们开发的dll.请问各路高手该如何做
- 一个关于无限级节点的导入问题,希望能得到解决!
- 一个有关无模式窗体的问题
- C#.net中DataGrid里面e.Item.ItemType如何用?
- 如何在C#里实现dataGrid显示图片?
- .ToDouble()這個有沒有,我在看一個例子時,怎么好像沒有這個屬性啊!
public void GetPixel_Example(PaintEventArgs e){// Create a Bitmap object from an image file.Bimap myBitmap = new Bitmap("Grapes.jpg");// Get the color of a pixel within myBitmap.Color pixelColor = myBitmap.GetPixel(50, 50);}
不需要api函数
Bitmap bb = new Bitmap(aa);
Color vv = bb.GetPixel(1,2);