Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

New Post: Convolutions & Gaussian Blur

$
0
0
Trying to use convolute on one of the images in my project but the blur doesn't apply to the image at runtime.
                StorageFile file = await StorageFile.GetFileFromPathAsync(Model.CurrentUser.BackgroundImagePath);
                IRandomAccessStream fileStream = await file.OpenAsync(Windows.Storage.FileAccessMode.Read);
                WriteableBitmap wb = await new WriteableBitmap(1, 1).FromStream(fileStream);
                var wb1 = WriteableBitmapExtensions.Convolute(wb, WriteableBitmapExtensions.KernelGaussianBlur3x3);
                MainTile.Source = wb1; 
Any ideas?

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>