Macie może jakiś pomysł np aby zliczyć wszystkie białe piksele na Picturebox?
0
0
Mam coś takiego
Bitmap myImage = new Bitmap(pictureBox1.Image);
int count = 0;
for (int y = 0; y < myImage.Height; y++)
{
for (int x = 0; x < myImage.Width; x++)
{
Color c = myImage.GetPixel(x, y);
if (c.R == 0 && c.G == 0 && c.B == 0)
count++;
}
}
textBox1.Text = count.ToString();
}
1
Nie prościej sprawdzić czy c == Color.White
?