Код: Выделить всё
int R, G, B, xi, yi, xf, yf;
private void button3_Click(object sender, EventArgs e)
{
listBox1.Items.Clear();
if (pictureBox1.Image == null)
{
MessageBox.Show("Lütfen bir JPEG resmi yükleyin.");
return;
}
Bitmap bmp2 = new Bitmap(pictureBox1.Image);
xi = 0;
yi = 0;
xf = bmp2.Width -1;
yf = bmp2.Height -1;
if (xi >= 0 && yi >= 0 && xf < bmp2.Width && yf < bmp2.Height)
{
for (int x = xi; x
Подробнее здесь: [url]https://stackoverflow.com/questions/79059674/how-to-get-rid-of-infinite-for-loop-to-find-pixel-colors[/url]
Мобильная версия