Beispiel #1
0
        protected override async Task LoadImageAsync(string fileName)
        {
            Ready = false;
            var original = OriginalImage = await BitmapLoader.LoadGrayscale(fileName);

            AlteredImage = await Task.Run(() => {
                return(BitmapTransformer.ToBitmap(_Dither(BitmapTransformer.ToGrayscalePixelArray(original))));
            });

            Ready = true;
        }