Blur images in Windows Runtime C# using WriteableBitmapEx -
i trying blur image in new windows phone runtime c# app (wprt) used writeablebitmapex nuget , code make image blured can't see changes in picture . what's going wrong guys ?
public testxaml() { this.initializecomponent(); .... test(); } async void test() { var imgfile = await windows.storage.storagefile.getfilefromapplicationuriasync(new uri("ms-appx:///assets/testbg.jpg")); var wb = new writeablebitmap(100,100); using (var strm = await imgfile.openreadasync()) { wb = await wb.fromstream(strm); } var wb3 = writeablebitmapextensions.convolute(wb, writeablebitmapextensions.kernelgaussianblur5x5); imagebrush ib = new imagebrush(); ib.imagesource = wb3; pagebackground.background = ib; }
also tried writeablebitmapextensions.kernelgaussianblur3x3 still no change
Comments
Post a Comment