public PictureProcessor() : base() { BrightnessHandler = new BrightnessHandler(this); ContrastHandler = new ContrastHandler(this); GrayscaleHandler = new GrayscaleHandler(this); FileHandler = new ImageFileHandler(this); RotationHandler = new RotationHandler(this); }
public CurrentImageHandler() : base() { CurrentBrightnessHandler = new BrightnessHandler(this); CurrentContrastHandler = new ContrastHandler(this); CurrentCropHandler = new CropHandler(this); CurrentFilterHandler = new FilterHandler(this); CurrentGrayscaleHandler = new GrayscaleHandler(this); CurrentFileHandler = new ImageFileHandler(this); CurrentImgInsHandler = new ImageInsertionHandler(this); CurrentInvHandler = new InversionHandler(this); CurrentRotationHandler = new RotationHandler(this); CurrentSepiaToneHandler = new SepiaToneHandler(this); CurrentShapeInsHandler = new ShapeInsertionHandler(this); CurrentTextInsHandler = new TextInsertionHandler(this); }
private void tbContrastValue_Scroll(object sender, EventArgs e) { ContrastHandler ch = new ContrastHandler(); pbPicture.Image = ch.toContrast(files.getSelectedImage(), tbContrastValue.Value); }
private void sContrast_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { ContrastHandler ch = new ContrastHandler(); applyChanges(ch.toContrast(files.getSelectedImage(), (float)sContrast.Value)); }