如何使用WriteableBitmap扩展库模糊Windows Phone上的图像?

时间:2012-12-22 06:28:48

标签: image windows-phone-7 windows-phone-8 blur

这似乎不起作用?

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

1 个答案:

答案 0 :(得分:1)

尝试:

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