Releases: mono/SkiaSharp
Version 1.53.1
Changes
NEWBreaking Change: SkiaSharp.dll is now a strong name assemblyNEWSKColorTableNEWSKBitmapnow has support forSKColorTableNEWSKCodecnow has support forSKColorTable- Fixed a few bugs
- Lots more docs
- Added a WPF sample
Issues
Several issues were closed, either fixed or resolved some other way.
Version 1.53.0
Changes
NEWSKPathEffectNEWSKPathnow has additional members (3)NEWSKPathcan now be iterated overNEWSKCodec(1)NEWSkiaSharp can now load Adobe DNG image formatsNEWSKPointandSKMatrixnow have many more membersNEWSKCanvasnow has transformations using a center pointNEWSKCanvascan now draw additional shapesNEWSKTypefacecan now be created with additional optionsCHANGEDSKColorType.N_32is now replaced withSKImageInfo.PlatformColorType(2)REMOVEDSKImageDecoder(1)FIXCorrected many memory issues
NuGet: https://www.nuget.org/packages/SkiaSharp/1.53.0
Notes
Note 1
The SKImageDecoder type is now replaced with SKCodec, which .
Note 2
The platform-specific SKColorType is no longer part of the enum, but as a static property on the SKImageInfo type. This is to reduce confusion because the platform-specific value was not actually a separate value.
Note 3
The SKPath type now includes several additional members to aid path creation: ArcTo, RArcTo, Rewind, Reset, AddPath, AddRoundedRect and AddCircle.
Version 1.49.4 (Beta)
Changes
NEWApple tvOS supportNEWSupport for PDF creation (1)
NuGet: https://www.nuget.org/packages/SkiaSharp/1.49.4-beta
Notes
Note 1
A PDF file can be created using a SKDocument and then by drawing using the normal drawing methods:
using (var stream = new SKFileWStream ("document.pdf")) using (var document = SKDocument.CreatePdf (stream)) { // the first page using (var canvas = document.BeginPage (width, height)) using (var paint = new SKPaint ()) { canvas.DrawText ("...PDF...", 10f, 100f, paint); document.EndPage (); } // the second page using (var canvas = document.BeginPage (width, height)) using (var paint = new SKPaint ()) { canvas.DrawText ("...PDF...", 10f, 100f, paint); document.EndPage (); } // all done document.Close (); }Version 1.49.3 (Beta)
Changes
NEWWindows UWP supportNEWSupport for additional platforms (1)NEWSupport forSKCanvasclipping (2)FIXReturn types forSKCanvassaving (3)FIXImproved UTF-32/UTF-16/UTF-8 handling (4)
NuGet: https://www.nuget.org/packages/SkiaSharp/1.49.3-beta
Notes
Note 1
To better enable support for additional platforms not yet officially supported, such as Linux, we have a new feature that will prevent the inclusion of the default native library. To support a custom platform, first disable the native library by adding:
<ShouldIncludeNativeSkiaSharp>False</ShouldIncludeNativeSkiaSharp>to the project that includes the native library (net45 library or exe). This will prevent the default library from being included, but then you will have to include your native library manually. The only criteria for this is to ensure that the native library is named libSkiaSharp.
Note 2
The old SKCanvas.ClipRect and SKCanvas.ClipPath did not provide a means to reset the clip region. New methods were added for this:
void ClipRect(SKRect rect, SKRegionOperation operation = SKRegionOperation.Intersect, bool antialias = false); void ClipPath(SKRect rect, SKRegionOperation operation = SKRegionOperation.Intersect, bool antialias = false); bool GetClipBounds(ref SKRect bounds); bool GetClipDeviceBounds(ref SKRectI bounds);Note 3
SKCanvas.Save and SKCanvas.SaveLayer did not correctly return the value from native code.
Note 4
The original implementation of SKPaint.MeasureText, SKPaint.BreakText, SKPaint.GetTextPath and SKPaint.GetPosTextPath tried to convert the text to UTF-16 before performing the operation. The new implementation uses the encoding provided by the SKPaint instance.
Just like when writing text to the screen, the SKPaint uses the text encoding provided by the TextEncoding property for all text operations.
Version 1.49.2.1 (beta)
Changes in this version:
- the latest changes from Google's Skia m49
- additions from @kekekeks
NuGet: https://www.nuget.org/packages/SkiaSharp/1.49.2.1-beta
Version 1.49.1
v1.49.1
Version 1.49.2 (beta)
Changes in this release from @bholmes, @joelmartinez, @migueldeicaza, @petergolde and @tdenniston.
Version 1.49.0 (beta)
Initial Release