fc9f030a08
A few changes and improvements: - add some helper members - improved the SKBitmap.CopyTo and related members - added Encode(...) to SKBitmap - added Encode(...) with a .NET Stream to SKBitmap, SKImage and SKPixmap - start the move from SKEncoding to SKTextEncoding - added more tests - generator now has a validator for ensuring all declarations have implementations - added equality members to all structs Bugs Fixed - Bitmaps copied with SKBitmap.Copy sometimes have incorrect colors - The GC would sometimes collect a stream that was being used by a PDF document |
||
---|---|---|
.. | ||
SkiaSharpGenerator | ||
README.md | ||
Utils.sln |
README.md
Utils
This directory contains a few tools to help with the binding and development of SkiaSharp and related libraries.
SkiaSharpGenerator
This is a small set of tools that help with generating the p/invoke layer from the C header files.
Generate
This can be run with:
dotnet run --project=utils/SkiaSharpGenerator/SkiaSharpGenerator.csproj -- generate --config binding/libSkiaSharp.json --skia externals/skia --output binding/Binding/SkiaApi.generated.cs
--config binding/libSkiaSharp.json
The path to the JSON file that help generate a useful set of p/invoke definions and structures.--skia externals/skia
The path to the root of the skia source.--output binding/Binding/SkiaApi.generated.cs
The path to the generated file.
Verify
This can be run with:
dotnet run --project=utils/SkiaSharpGenerator/SkiaSharpGenerator.csproj -- verify --config binding/libSkiaSharp.json --skia externals/skia
--config binding/libSkiaSharp.json
The path to the JSON file that help generate a useful set of p/invoke definions and structures.--skia externals/skia
The path to the root of the skia source.--output binding/Binding/SkiaApi.generated.cs
The path to the generated file.