private void тиснениеToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new GrayScaleFilter(); Bitmap newImage = (filter.processImage(image)); image = newImage; filter = new EmbossingFilter(newImage); newImage = (filter.processImage(image)); image = newImage; backgroundWorker1.RunWorkerAsync(filter); }
private void bWГистограммаToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new GrayScaleFilter(); Bitmap palImage = filter.processImage(image); int[] histogram = new int[256]; for (int x = 0; x < image.Width; x++) { for (int y = 0; y < image.Height; y++) { histogram[palImage.GetPixel(x, y).R]++; } } HistogramWindowcs histogramView = new HistogramWindowcs(); histogramView.ShowIntensityHistogram(histogram); }