public cipFormLightnessContrast(Image image, Raster source) { InitializeComponent(); CipSize size = new CipSize(image.Size); CipSize newSize = Resample.SizeAdaptHeight(size, 200); Resample resampleFIlter = new Resample(newSize, CipInterpolationMode.BicubicSpline); raster = resampleFIlter.ProcessWithoutWorker(source); this.ThumbnailBitmap = raster.ToBitmap(); this.pBoxPreview.Image = this.ThumbnailBitmap; thread = new Thread(new ThreadStart(this.ReDraw)); thread.Priority = ThreadPriority.Normal; }
public cipFormSmoothing(Image image, Raster source, System.Globalization.CultureInfo selectedCulture) { Thread.CurrentThread.CurrentUICulture = selectedCulture; InitializeComponent(); CipSize size = new CipSize(image.Size); CipSize newSize = Resample.SizeAdaptHeight(size, 200); Resample resampleFIlter = new Resample(newSize, CipInterpolationMode.BicubicSpline); raster = resampleFIlter.ProcessWithoutWorker(source); this.ThumbnailBitmap = raster.ToBitmap(); this.pBoxPreview.Image = this.ThumbnailBitmap; thread = new Thread(new ThreadStart(this.ReDraw)); thread.Priority = ThreadPriority.Normal; }
public cipFormHistogram(Image image,Raster source) { InitializeComponent(); level = trackBarThreshold.Value / 1000f; textBoxLevel.Text = Convert.ToString(this.level); CipSize size = new CipSize(image.Size); CipSize newSize = Resample.SizeAdaptHeight(size, 200); Resample resampleFIlter = new Resample(newSize, CipInterpolationMode.BicubicSpline); raster = resampleFIlter.ProcessWithoutWorker(source); this.ThumbnailBitmap = raster.ToBitmap(); this.pBoxPreview.Image = this.ThumbnailBitmap; thread = new Thread(new ThreadStart(this.ReDraw)); thread.Priority = ThreadPriority.Normal; }