Category / Section
How to resolve “UWP Getting Exception "Could not find Windows Runtime type 'Microsoft.Graphics.Canvas.CanvasDevice' When trying to save in UWP?
1 min read
When you try to save image in Image Editor, you may get “Could not find Windows Runtime type “Microsoft.Graphics.Canvas.CanvasDevice” exception, because UWP does not have support for 2D graphics rendering to save image. To resolve this exception, you should install Windows Runtime API Win2D, which is used for 2D graphics rendering for the Universal Windows Platforms.
Runtime Exception
How to install Win2D to project?
Please refer the following steps to add Win2D NuGet to the UWP Project.
Step 1: Right click the UWP Project, and then select Manage NuGet Packages.
Step 2: In NuGet Manager, click browse Win2D, and then click Install.
Step 3: Please ensure that NuGet has been installed properly.