skiad ~main

A minimal D application.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

SkiaD

SkiaD is a cross-platform 2D graphics API for D based on Mono's SkiaSharp. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.

Require

  • DMD 2.096.0 and above
  • SkiaSharp 2.80.2 and above

Setup

Download SkiaSharp 2.80.2

Download the SkiaSharp package from here. Extract the runtimes for your OS plantform.

Windows
> mkdir -p c:\lib\win-x64
> copy skiasharp\2.80.2\runtimes\win-x64\native\libSkiaSharp.dll c:\lib\win-x64
> cd lib\windows
> lib /def:skia.def /MACHINE:X64 /out:SkiaSharp.lib
> copy SkiaSharp.lib c:\lib\win-x64
OSX
> cp skiasharp/2.80.2/runtimes/osx/native/libSkiaSharp.dylib /usr/local/lib

TODO

  • [x] Improvements for SKColor parser
  • [x] SKCanvas.DrawText with Chinese
  • [ ] More tests

See also

  • https://github.com/mono/SkiaSharp
  • https://www.nuget.org/packages/SkiaSharp
  • https://github.com/mono/SkiaSharp/wiki/Building-SkiaSharp
  • https://stackoverflow.com/questions/59214555/how-to-build-skiasharp-project-the-libskiasharp-dll-is-missing
Dependencies:
none
Versions:
0.0.1 2021-Oct-19
~main 2021-Oct-19
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 24 downloads total

Score:
0.9
Short URL:
skiad.dub.pm