Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# get pixel from bitmap click

private void pictureBox_MouseUp(object sender, MouseEventArgs e)
{
    Bitmap b = new Bitmap(pictureBox.Image);
    Color color = b.GetPixel(e.X, e.Y);
}
 
PREVIOUS NEXT
Tagged: #pixel #bitmap #click
ADD COMMENT
Topic
Name
5+4 =