Version 1.57.0
Encoded-format alignment · Released April 4, 2017 · NuGet · GitHub Release
API changes · SkiaSharp API diff
Highlights
SkiaSharp 1.57.0 unifies the encoded-image format enums and drops a few obsolete GPU and image helpers. SKCodec.EncodedFormat now returns the shared SKEncodedImageFormat, SKImageEncodeFormat is renumbered to match, and the deprecated GRPixelConfig.Index8 value plus SKImage.ToTextureImage are removed.
Breaking Changes
- SKCodec.EncodedFormat returns SKEncodedImageFormat — The property no longer returns SKEncodedFormat — callers should switch to the shared SKEncodedImageFormat enum used across the API.
- SKImageEncodeFormat values renumbered — The Unknown = 0 value was removed and the remaining values shifted down by one (Bmp = 0, Gif = 1, …). Recompile against the new enum values — persisted integer values are not compatible.
- GRPixelConfig.Index8 removed — The Index8 pixel config was removed from GRPixelConfig, matching Skia's removal of GPU support for indexed colour.
- SKImage.ToTextureImage removed — SKImage.ToTextureImage(GRContext) is gone. Create a GPU-backed image with the GRContext-based SKImage factories instead.
API Surface
- Encoded-image format enums unified — SKCodec and the encoders now speak the same SKEncodedImageFormat enum, removing the parallel SKEncodedFormat / SKImageEncodeFormat duplication.
- Deprecated GPU helpers removed — Drops GRPixelConfig.Index8 and SKImage.ToTextureImage, matching what Skia itself supports on the GPU.