View difference between Paste ID: WpeJSBG7 and e6XhGGHb
SHOW: | | - or go back to the newest paste.
1
Bitmap jpg = (Bitmap)pictureBox2.Image, jpg1 = new Bitmap(jpg.Width, jpg.Height);
2
            int x, y, r, g, b; Color cl; double rs, gs, bs;
3-
            double[,] w = new double[3, 3]
3+
			int r_shift = 0, g_shift = 10, b_shift = -10;
4
            for (y = 0; y < jpg.Height; y++)
5-
                    {-1,-1,-1 },
5+
6-
                    {-1,9,-1 },
6+
                for (x = 0; x < jpg.Width; x++)
7-
                    {-1,-1,-1 }
7+
8-
                };
8+
                           	if (x < jpg.Width + r_shift && x > r_shift ) r = jpg.getPixel(x-r_shift,y).R;
9-
9+
                           	if (x < jpg.Width + g_shift && x > g_shift ) r = jpg.getPixel(x-g_shift,y).G;
10-
            for (y = 1; y < jpg.Height - 1; y++)
10+
                           	if (x < jpg.Width + b_shift && x > b_shift ) r = jpg.getPixel(x-b_shift,y).B;
11
                            cl = Color.FromArgb(r, g, b);
12-
                for (x = 1; x < jpg.Width - 1; x++)
12+
13
            }
14-
                    rs = gs = bs = 0;
14+
15-
                    for (int i = -1; i <= 1; i++)
15+
        }
16-
                        for (int j = -1; j <= 1; j++)
16+
                pictureBox3.Image = jpg1;