1
我嘗試將多個過濾器應用於使用lumia圖像sdk的圖片,但我無法僅使用1個過濾器。當我爲Win 8.1製作的時候,我可以使用帶有過濾器的數組,但現在它不起作用。我如何解決它?將多個過濾器應用於圖片Lumia SDK UWP
代碼應用濾鏡:
public async Task<bool> ApplyEffectAsync(StorageFile file)
{
WriteableBitmap temp = new WriteableBitmap(1280, 720);
temp = new WriteableBitmap(1280, 720);
FileStream = await File.OpenAsync(FileAccessMode.Read);
temp.SetSource(FileStream);
OriginalPicture = temp;
FileStream.Seek(0);
original.Invalidate();
((IImageConsumer) Effect).Source = new RandomAccessStreamImageSource(FileStream);
M_renderer = new WriteableBitmapRenderer((IImageProvider)Effect, original);
FilteringPicture = await M_renderer.RenderAsync();
filtering.Invalidate();
return true;
}