private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
int x = e.X;
int y = e.Y;
using (Bitmap bmp = new Bitmap(AppDomain.CurrentDomain.BaseDirectory + "werty.png"))
{
Color pixelColor = bmp.GetPixel(x, y);
//像素點顏色的 Alpha 值
byte alpha = pixelColor.A;
//顏色的 RED 分量值
byte red = pixelColor.R;
//顏色的 GREEN 分量值
byte green = pixelColor.G;
//顏色的 BLUE 分量值
byte blue = pixelColor.B;
}
}