看板 C_Sharp 關於我們 聯絡資訊
※ 引述《roses0415 (.........)》之銘言: Bitmap bmp = new Bitmap(picture1.Image); // 用 Image 建立 Bitmap Color c = bmp.GetPixel( X, Y); // 關鍵就醬.. 如果x,y出界的話, 會exception. 所以看你要try{}起來不然就是要簡查邊界.. bmp.Dispose(); // 記得要dispose釋放unmanaged reousrce -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.139.130.91