Table of Contents

Version 1.56.2

Index8 rework · Released March 7, 2017 · NuGet · GitHub Release

API changes · SkiaSharp API diff

Highlights

SkiaSharp 1.56.2 reworks the indexed-colour APIs and trims a handful of SKPath and SKBitmap helpers. SKColorTable now speaks premultiplied colours (SKPMColor) to match how Skia stores its palette, and SKBitmap.GetIndex8Color is gone. Several SKPath overloads drop optional add-mode defaults so their overload set is explicit.

Breaking Changes

  • SKColorTable exposes SKPMColor — SKColorTable.Colors and the indexer now return SKPMColor[] / SKPMColor rather than SKColor. Convert to and from premultiplied colours when interacting with palette data.
  • SKBitmap.GetIndex8Color removed — GetIndex8Color(x, y) is gone. Read the palette index and look it up through the bitmap's SKColorTable instead.
  • SKPath.AddPath defaults removed — The AddMode = 0 default was removed from the SKPath.AddPath overloads. Pass the AddMode explicitly.
  • SKPath.Iterator.Next overload removed — The Next(SKPoint[], bool doConsumeDegenerates, bool exact) overload was removed from SKPath.Iterator; use the remaining overload.
  • SKImageInfo fields no longer readonly — SKImageInfo.Empty and SKImageInfo.PlatformColorType are no longer readonly, so referencing code that expected compile-time constness needs to adjust.

API Surface

  • Indexed-colour APIs use premultiplied colours — SKColorTable now surfaces SKPMColor, matching Skia's internal storage and avoiding a hidden conversion on every palette read.
  • SKPath overloads made explicit — Removes optional AddMode defaults from SKPath.AddPath so overloads resolve unambiguously and the ABI is stable.