Skip to content

Version 1.56.0

Compare
Choose a tag to compare
@mattleibow mattleibow released this 16 Jan 03:51

SkiaSharp

A cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.

  • Improvements to SKBitmap
    • Resizing bitmaps using SKBitmap.Resize
    • Updating pixels directly using SKBitmap.InstallPixels and SKBitmap.PeekPixels
    • Bindings for SKPixmap
  • Improvements to SKCodec
    • Support for multi-frame images (such as .gif)
    • Support for reading the encoding information of a bitmap file
  • Other improvements
    • SKXfermode has been deprecated in favour of SKBlendMode
    • SKPicture.Bounds is now, more correctly, SKPicture.CullRect

NuGet: https://www.nuget.org/packages/SkiaSharp/1.56.0
Code Diff: v1.55.1...v1.56.0

SkiaSharp.Views

A set of pre-prepared UI views, panels and surfaces for drawing. One of these views can be added to the view hierachy, and then be used for drawing without the need for complex setup. There is also a set of extension methods for converting to/from SkiaSharp and native types.

  • Fix for Android GL views to correctly clear the stencil buffer
  • Added a stencil buffer for macOS GL views
  • No longer dependent on OpenTK for Android/iOS/tvOS/macOS GL views
  • SKXamlCanvas for UWP no longer blocks on Invalidate()

NuGet: https://www.nuget.org/packages/SkiaSharp.Views/1.56.0

SkiaSharp.Views.Forms

A set of pre-prepared views for Xamarin.Forms, for fully cross-platform drawing code. There are views for both CPU and GPU backends, along with extension methods for converting to/from SkiaSharp and Xamarin.Forms types. Currently available for iOS, Android and UWP.

  • No longer dependent on OpenTK for Android/iOS/tvOS/macOS GL views
  • iOS SKCanvasView and SKGLViewRenderer is now transparent by default

NuGet: https://www.nuget.org/packages/SkiaSharp.Views.Forms/1.56.0

SkiaSharp.Svg (preview)

Support for SVG has been a hot topic, but Google has stated that this is not going to be a feature coming soon (or at all). However, we do want to support SVG. To this end, we are trying out a lightweight SVG parser.

  • Correctly handling SVG transparency and opacity

NuGet: https://www.nuget.org/packages/SkiaSharp.Svg/1.56.0-beta1

Samples

A few new samples were added to demonstrate some new features.

All the samples that have been built and tested for this version of SkiaSharp can be downloaded in the "Downloads" links below.