public HistogramWindow(Models.Image image, ImageWindow parentWindow) { InitializeComponent(); this.image = image; Title = histogramName = string.Format("{0}_Histogram_{1}.bmp", image.filename.Split('.')[0], image.ColorFormat); ResizeMode = ResizeMode.CanMinimize; LUT = image.FindLookUpTable(); histogramPlotMap = MakeMap(); LoadKeysToCB(); colorPicker.SelectedIndex = 0; this.parentWindow = parentWindow; }
public void ReloadHistogram() { LUT = image.FindLookUpTable(); MakePlot(colorPicker.SelectedItem.ToString()); }