Skip to content

Version 1.56.1

Compare
Choose a tag to compare
@mattleibow mattleibow released this 08 Feb 09:30

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.

  • New & Improved Platforms
    • Support for .NET Standard 1.3 project types (#111)
    • Support for .NET Core (win7, win10, osx) (#111)
    • Reduced native library sizes to ~5MB per platform architecture (#174)
    • Partial work to get a .NET Core Linux build. (#90)
  • Added Types
    • ★ Added support for SKFontManager for finding typefaces for a specific character (#232)
    • Added support for the SKSvgCanvas (preview) (#107)
    • Added support for SKMask (#220)
    • Added support for SK3dView (creating 3D SKMatrix transformations) (#214)
  • Other API Additions
    • ★ Many new members for SKPath, such as AddPoly and SegmentMasks
    • ★ Many new members for SKBitmap, such as ExtractAlpha and ExtractSubset
    • ★ Improved support for Unicode, UTF-32, emojis (#232)
    • ★ Some string helpers in StringUtilities
    • ★ Class library builds (ie: tests) for .NET 4.5 will now copy the native assembly to the output (#44, #190)
    • ★ Support for high quality blurring with SKMaskFilter
    • SKCodec now supports scanline decoding
    • PDF SKDocument now supports metadata and annotations
    • SKBitmap can be created from a SKMask
    • Changed SKStrokeJoin.Mitter to SKStrokeJoin.Miter (#227)
    • SKImageInfo.PlatformColorType now correctly obtains the platform color type

NuGet: https://www.nuget.org/packages/SkiaSharp/1.56.1
Code Diff: v1.56.0...v1.56.1

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.

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

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.

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

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.

This goes in part with SKSvgCanvas, which is used to create SVG files. Although both are still "preview" areas because not all the features of SVG have been implemented yet, they are both still very usable for most cases.

  • ★ Fixes the handling of the viewbox (#230)

NuGet: https://www.nuget.org/packages/SkiaSharp.Svg/1.56.1

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.