Win2D version 1.22.0 is now available on NuGet and GitHub.
New in this release:
- CanvasGeometry now implements IGeometrySource2D, which allows using Win2D to construct and manipulate geometry paths for the new Windows.UI.Composition geometry APIs
- Allow use of CanvasGeometry and CanvasPathBuilder without a CanvasDevice
- The Microsoft.Graphics.Canvas.Svg APIs and ColorManagementProfile enhancements, which were introduced with Windows 10 Creators Update, are no longer marked as experimental
- Fixed race condition if TrackAsyncAction is passed an action that has already completed (issue #585)
- Win2D.uwp.targets no longer checks for TargetPlatformIdentifier=UWP (fixes issue #583)
- Enabled ControlFlowGuard compiler setting, to make Win2D compliant with the binskim static analysis tool
- Fixed SVG handling of negative stream seek offsets on x64
- Improved documentation about CanvasStrokeStyle defaults and zero-length dashes
This release removes support for the Windows 8.1 and Windows Phone 8.1 platforms. Legacy support for these remains available in Win2D 1.21.0, as a NuGet package and from the win81 branch on github.
Building an app using Win2D 1.22.0 requires the April 2018 Update Windows SDK (version 17134). Attempting to build with an older SDK will fail:
error CS7069: Reference to type 'IGeometrySource2D' claims it is defined in 'Windows.Foundation.UniversalApiContract', but it could not be found
Note that apps using this version of Win2D are still compatible with older versions of Windows 10. The April 2018 SDK is required in Visual Studio to build them, but April 2018 update of the Windows OS is not required to run them.