Closed SeriousGeorge closed 8 years ago
In your second code sample you are not actually setting a source. You are just sending in a list of four items. Try something like this:
EffectList list = new EffectList() {scale,rotation,blur}; list.Source = source;
See more at: https://msdn.microsoft.com/en-us/library/lumia.imaging.effectlist_members.aspx
Wow, that was quick. Thanks a lot! It's working now.
I try to render multiple effects as a list (the amount and order of the effects can be dynamic). But everytime I render more than the Source it throws an InvalidCastException.
Working code with source only: ` applicationData = ApplicationData.Current; localFolder = applicationData.LocalFolder; imageFile = await localFolder.GetFileAsync("pic.jpg"); IAsyncOperation stream = FileIO.ReadBufferAsync(imageFile);
`
Not working with list: ` applicationData = ApplicationData.Current; localFolder = applicationData.LocalFolder; imageFile = await localFolder.GetFileAsync("pic.jpg"); IAsyncOperation stream = FileIO.ReadBufferAsync(imageFile);
`
I also tried with JpegRenderer... same result. Additionally I can't find any complete sample using EffectList().