documentation/docfx/releases/1.56.2.md
3D transforms, image API expansion, and cross-platform image conversion · Released March 9, 2017 · NuGet · GitHub Release
This release adds SKMatrix44 for 3D transformations, SKFrontBufferedStream for decoding non-seekable streams, SKPMColor for premultiplied color handling, and extensive new members on SKImage and SKCanvas. SkiaSharp.Views gains comprehensive image conversion extensions between SkiaSharp types and native platform image types (UIImage, Bitmap, WriteableBitmap, CGImage, NSImage), and UWP SKXamlCanvas gets major performance improvements. Many types that previously only accepted SKStream now have .NET Stream overloads.
SKColorTable now uses premultiplied colors — SKColorTable correctly uses SKPMColor (premultiplied) instead of SKColor. Passing SKColor values will be premultiplied automatically. This may affect code that was relying on the previous (incorrect) behavior.SKMatrix44 — New type for representing 3D matrix transformations.SKFrontBufferedStream — Wraps non-seekable streams for use with SKCodec and SKBitmap decoding.SKPMColor — New type for premultiplied colors, with methods for premultiplying and unpremultiplying SKColor values.SKImage expansion — Many new members for constructing pixel-backed and texture-backed images, plus ReadPixels, PeekPixels, ScalePixels, and ApplyImageFilter.SKData creation overloads — Several new overloads for creating SKData instances either as a copy or a wrapper.GRContext.ResetContext — Reset the internal GPU context state.SKCanvas.DrawVertices — Draw vertex-based geometry..NET Streamoverloads** — Many types that acceptedSKStreamnow also accept .NETStream` types.SKBitmap, SKImage, SKPixmap, SKPicture) and native image types (UWP/WPF WriteableBitmap, Android/Desktop Bitmap, iOS/tvOS UIImage, Apple CGImage/CIImage, macOS NSImage).SKData/NSData conversion — New extension methods for converting between SKData and Apple NSData.ImageSource types — New Xamarin.Forms ImageSource types for directly drawing SkiaSharp images.SKXamlCanvas performance — Major performance improvements to the UWP canvas.| Platform | What's New |
|---|---|
| 🍎 Apple | Image conversion extensions for UIImage, CGImage, CIImage, NSImage; SKData↔NSData conversion |
| 🪟 Windows | Image conversion for WriteableBitmap; major UWP SKXamlCanvas performance improvements |
| 🤖 Android | Image conversion extensions for Bitmap |