Version 1.57.0
Skia m57 upgrade with new encoding APIs · Released April 10, 2017 · NuGet · GitHub Release
Highlights
A major release upgrading the native Skia engine from m56 to m57. This brings direct encoding support on SKBitmap, SKPixmap, and SKSurface, XPS document creation on Windows, and deprecates SK3dView in favor of SKMatrix44. Several breaking changes align the API with upstream Skia removals.
Breaking Changes
Removed APIs
- Emboss and shadow
SKMaskFilterremoved — These filter types are no longer available in upstream Skia m57. SKEncodedFormatandSKImageEncodeFormatrenamed — UseSKEncodedImageFormatinstead.[Obsolete]members are now errors — Previously obsolete members now produce compile-time errors. Update to the recommended replacements.
Deprecations
SK3dViewis now obsolete — UseSKMatrix44instead for 3D transformations.
New Features
Engine
- Skia m57 upgrade — Major update to the latest stable Skia milestone (chrome/m57).
API Surface
SKBitmap.Encode— Bitmaps can now be encoded directly without creating an intermediate image.SKCanvasdrawsSKSurfacedirectly — Draw a surface onto a canvas without extracting an image first.SKDataempty creation —SKDatacan now be created without existing data (uninitialized).SKPixmap.Encodeoverloads — Encode pixel data directly from a pixmap.SKSurfacepixel data access — New members to access pixel data directly from a surface.
Documents
- XPS document support —
SKDocumentcan now create XPS documents (Windows-only). Note: there is a known issue on Windows 10 Mobile.
Extensions (Preview)
SKGeometryutilities — Initial work on geometry helpers includingCreateSectorPathfor pie/donut shapes,CreatePiePathfor charts, and methods to create regular shape paths.
Bug Fixes
- Resolved AOT errors on Android.
SKCanvasViewandSKGLViewnow correctly resize in Xamarin.Forms in some cases.- Many other bug fixes and improvements.
Platform Support
| Platform | What's New |
|---|---|
| 🪟 Windows | XPS document creation via SKDocument |
| 🤖 Android | AOT error fixes |
| 🎨 Core | Skia m57 engine upgrade, new encoding APIs |