public void MakeBetter() //повышение резкости { pixel = new UInt32[bmp.Height, bmp.Width]; for (int y = 0; y < bmp.Height; y++) { for (int x = 0; x < bmp.Width; x++) { pixel[y, x] = (UInt32)(bmp.GetPixel(x, y).ToArgb()); } } pixel = Color_matrix.matrix_filtration(bmp.Width, bmp.Height, pixel, Color_matrix.N1, Color_matrix.sharpness); FromPixelToBitmap(); FromBitmapToScreen(); }
public void MakeWorth() //размытие { pixel = new UInt32[bmp.Height, bmp.Width]; for (int y = 0; y < bmp.Height; y++) { for (int x = 0; x < bmp.Width; x++) { pixel[y, x] = (UInt32)(bmp.GetPixel(x, y).ToArgb()); } } pixel = Color_matrix.matrix_filtration(bmp.Width, bmp.Height, pixel, Color_matrix.N2, Color_matrix.blur); FromPixelToBitmap(); FromBitmapToScreen(); }