Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
        private void tbBrightnessValue_Scroll(object sender, EventArgs e)
        {
            BrightnessHandler bh = new BrightnessHandler();

            pbPicture.Image = bh.toBright(files.getSelectedImage(), tbBrightnessValue.Value);
        }
Exemplo n.º 4
0
        private void sBrightness_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
        {
            BrightnessHandler bh = new BrightnessHandler();

            applyChanges(bh.toBright(files.getSelectedImage(), (float)sBrightness.Value));
        }