Ejemplo n.º 1
0
        protected async void OnSketchModeChanged(SketchMode mode)
        {
            this.sketchFilter.SketchMode = mode;
            this.ResetWorkingBitmap();
            this.workingBitmap = await NokiaRenderer.Render(this.workingBitmap, filters);

            this.ModifiedImage = this.workingBitmap;
        }
Ejemplo n.º 2
0
 protected override async void OnIsColorFixedChanged(bool newValue, bool oldValue)
 {
     if (newValue)
     {
         this.IsColorInverted = false;
         this.IsGreyscale     = false;
         this.ResetWorkingBitmap();
         this.filters.Add(autoLevelsFilter);
         this.ModifiedImage = await NokiaRenderer.Render(this.workingBitmap, filters);
     }
     else
     {
         this.ResetWorkingBitmap();
         this.filters.Clear();
         this.ModifiedImage = this.workingBitmap;
     }
 }
Ejemplo n.º 3
0
        protected override async Task <System.Windows.Media.Imaging.WriteableBitmap> ApplyCore(System.Windows.Media.Imaging.WriteableBitmap actualImage)
        {
            actualImage = await NokiaRenderer.Render(actualImage, filters);

            return(actualImage);
        }
Ejemplo n.º 4
0
 protected override async Task <WriteableBitmap> ApplyCore(WriteableBitmap actualImage)
 {
     return(await NokiaRenderer.Render(actualImage, this.filters));
 }