string imgPath;
imgPath = @"C:\Documents and Settings\shree\Desktop\2012.06.09.15.35.42.2320.tif";
Bitmap img;
img = new Bitmap(imgPath, true);
MessageBox.Show(Here i have to show pixel value of this .tif image on the basis of X Y coordinates.);
答案 0 :(得分:2)
试试这个
string imgPath;
imgPath = @"C:\Documents and Settings\shree\Desktop\2012.06.09.15.35.42.2320.tif";
Bitmap img;
img = new Bitmap(imgPath, true);
Color pixelColor = img.GetPixel(50, 50); // 50, 50 or any "VALID" pixel in your bitmap
有关详细信息,请转到here