How to use WriteableBitmapExtension library to blu

2019-08-27 11:25发布

问题:

This seems not working?

WriteableBitmap wb = new WriteableBitmap(albumArtImage);
WriteableBitmapExtensions.Convolute(wb, WriteableBitmapExtensions.KernelGaussianBlur5x5);
AlbumBackground.ImageSource = wb;

回答1:

Try:

WriteableBitmap wb = new WriteableBitmap(albumArtImage);
var wb2 = WriteableBitmapExtensions.Convolute(wb, WriteableBitmapExtensions.KernelGaussianBlur5x5);
AlbumBackground.ImageSource = wb2;