Solution of "Lumia.Imaging.StorageFileImageSource is not registered" issue.
When you use Lumia Imaging SDK, you may occur this problem: it says "Lumia.Imaging.StorageFileImageSource" is not registered when reach the first line of the code like this:
using (var imgSource = new StorageFileImageSource(_tempFile))
{
var effect=new LomoEffect(imgSource);
await RenderJpegAsync(effect);
}
Also,while referring any ImageSource
in the namespace of Lumia.Imaging
can cause the same non-registered problem. But the way to fix this is quite simple:
- Open the project's
Package.appxmanifest
as a text file. - Add the following code as inside
Package
tag:
<Extensions>
<Extension Category="windows.activatableClass.inProcessServer">
<InProcessServer>
<Path>Lumia.Imaging.dll</Path>
</InProcessServer>
</Extension>
</Extensions>
Alternately, I am working with Lumia Imaging SDK and by now I have built a demo that allows you custom the params of all the Effect
from the SDK and see the result combining muilti effects in one photo. If you are working on the similar case, feel free to communicate with me ;-D
Subscribe to JuniperPhoton's Blog
Get the latest posts delivered right to your inbox