SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
Перейти к файлу
Matthew Leibowitz 76c80146f1 Updated the UWP sample 2016-06-21 17:47:05 +02:00
binding We don't have access to the OS from UWP, but it will always be Windows 2016-06-21 17:46:32 +02:00
depot_tools@8dd81ea20b Updated to the bits based on m52 2016-06-17 22:54:08 +02:00
docs The stream cannot be referenced/disposed once passed to SKTypeface. 2016-06-06 21:38:10 +02:00
images Added some cool images 2016-06-15 00:48:59 +02:00
native-builds A few extra dependencies for UWP 2016-06-21 17:45:58 +02:00
nuget Fix the script when using the local packages: 2016-06-15 09:15:05 +02:00
samples Updated the UWP sample 2016-06-21 17:47:05 +02:00
skia@d7ff753479 A few extra dependencies for UWP 2016-06-21 17:45:58 +02:00
tests Updated to the bits based on m52 2016-06-17 22:54:08 +02:00
tools Updating Cake to fix NuGet resolver 2016-05-06 17:27:35 +02:00
.editorconfig Added .editorconfig 2016-03-01 17:51:01 +03:00
.gitignore Updating Cake to fix NuGet resolver 2016-05-06 17:27:35 +02:00
.gitmodules Changing the submodule to https 2016-05-03 19:31:13 +02:00
Binding.md Create Binding.md 2016-02-22 13:42:32 -05:00
CONTRIBUTING.md Create CONTRIBUTING.md 2016-03-01 19:18:14 +02:00
LICENSE.md Adding MIT license file 2016-02-22 11:46:04 -05:00
Makefile added 'assemble-docs' makefile target 2016-03-07 11:33:20 -05:00
README.md Updated to the bits based on m52 2016-06-17 22:54:08 +02:00
bootstrapper.ps1 added mdoc to the tools 2016-06-15 11:02:09 +02:00
bootstrapper.sh Added a TEMPORARY workaround for packing NuGets... 2016-06-13 21:50:04 +02:00
build.cake A few extra dependencies for UWP 2016-06-21 17:45:58 +02:00

README.md

SkiaSharp

Gitter.im NuGet NuGet Pre Release

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library (https://skia.org/). It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.

What is Included

SkiaSharp provides a PCL and platform-specific bindings for:

  • Mac OS X
  • Xamarin.Android
  • Xamarin.iOS
  • Xamarin.tvOS
  • Windows Desktop
  • Windows UWP
  • Mac Desktop

You can also build this on your particular variant of Unix to create your native libraries.

Using SkiaSharp

Check our getting started guide

Building SkiaSharp

First clone the repository:

$ git clone https://github.com/mono/SkiaSharp.git

Next, set up the submodules:

$ cd SkiaSharp
$ git submodule init && git submodule update

Then follow the platform-specific instructions below.

Mac OS X

Run from Bash

$ ./bootstrapper.sh -t libs

Windows

You need Python 2.7 in PATH environment variable. Then you can build it:

> .\bootstrapper.ps1 -Target libs

Build Targets

There are several targets available:

  • Everything - builds everything for the current platform
  • externals - builds all the native libraries
    • [win] externals-windows - builds the native libraries for Windows
    • [win] externals-uwp - builds the native libraries for Windows UWP
    • [mac] externals-osx - builds the native libraries for Mac OS X
    • [mac] externals-ios - builds the native libraries for iOS
    • [mac] externals-tvos - builds the native libraries for tvOS
    • [mac] externals-andoid - builds the native libraries for Android
  • libs - builds all the managed libraries
    • [win] libs-windows - builds the managed libraries that can be built on Windows
    • [mac] libs-osx - builds the managed libraries that can be built on Mac OS X
  • tests - builds and runs the tests
  • samples - builds the samples available for the current platform
  • docs - updates the mdoc files
  • nuget - packages the libraries into a NuGet
  • clean - cleans everything
    • clean-externals - cleans externals only
    • clean-managed - cleans managed libraries/samples only

Compare Code

Here are some links to show the differences in our code as compared to Google's.

What version are we on? m52
Are we up-to-date with Google? Compare
What have we added? Compare

WIP: https://github.com/mono/skia/compare/update-google-skia...google:chrome/m52 Diff: https://github.com/google/skia/compare/chrome/m52...mono:update-google-skia

Where is Windows Phone 8 / Store 8

We are working to add binaries for these platforms, stay tuned for a future release (or check the pull requests and branches, where we are working on those)