SkiaSharp fork for the Uno Platform and WebAssembly. Skia 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 10b72b3043 Added a test for incremental codec decodes 2016-11-17 04:35:51 +02:00
binding Added C# API support for incremental codec decodes 2016-11-17 04:34:48 +02:00
cake Use the latest version of ANGLE 2016-10-29 21:36:36 +02:00
docs Updated docs 2016-11-14 07:24:10 +02:00
externals Added C# API support for incremental codec decodes 2016-11-17 04:34:48 +02:00
images Added an icon to the OS X sample 2016-07-29 18:09:17 +02:00
native-builds Kernel32.lib is not needed, and causes issues in the mobile emulator. Addresses #193 2016-11-13 05:06:18 +02:00
nuget SkiaSharp Views are no longer beta :) 2016-11-08 05:13:09 +02:00
samples Updated Xamarin.Forms to be the latest and greatest 2016-11-13 05:06:41 +02:00
source Added a way to disable raster canvas scaling for Windows controls 2016-11-12 23:37:43 +02:00
tests Added a test for incremental codec decodes 2016-11-17 04:35:51 +02:00
tools Use the GenAPI from NuGet 2016-10-20 23:26:00 +02:00
.editorconfig Added .editorconfig 2016-03-01 17:51:01 +03:00
.gitignore Use the GenAPI from NuGet 2016-10-20 23:26:00 +02:00
.gitmodules moved the externals into an "externals" folder 2016-09-15 00:53:42 +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 Updates to the documentation bits 2016-10-19 00:50:16 +02:00
README.md Update README.md 2016-10-29 13:47:24 +02:00
bootstrapper.ps1 Corrected support for Powershell v2. Closes #179 2016-11-04 04:49:04 +02:00
bootstrapper.sh Added a TEMPORARY workaround for packing NuGets... 2016-06-13 21:50:04 +02:00
build.cake Zip up the samples on CI 2016-11-08 22:43:25 +02:00
mono.pub Updated the project files to the new skia location and split the cake script 2016-09-15 03:14:35 +02:00
mono.snk Updated the project files to the new skia location and split the cake script 2016-09-15 03:14:35 +02:00

README.md

SkiaSharp

Gitter.im NuGet Pre Release SkiaSharp.Views SkiaSharp.Views.Forms

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 (Console or using the Xamarin.Mac)
  • Xamarin.Android
  • Xamarin.iOS
  • Xamarin.tvOS
  • Xamarin.Mac
  • Windows Desktop (Windows.Forms / WPF)
  • Windows UWP

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

Using SkiaSharp

SkiaSharp is available as a convenience NuGet package, to use install the package like this:

nuget install SkiaSharp

Our getting started guide will walk you through both the basic setup as well as the platform specific capabilties.

The API Documentation is also available on the web to browse.

Prerequisites

Make sure the Microsoft Visual C++ 2015 Redistributable is installed if this error occurs:

Unable to load DLL 'libSkiaSharp.dll': The specified module could not be found.

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

This runs the build process by using the libs build target.

Windows

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

> .\bootstrapper.ps1 -Target libs

This runs the build process by using the libs build target.

Build Targets

There are several targets available, you can specify the target as the argument to the -t command line option in the bootstrapper script.

  • 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

New Skia Features Roadmap

Google has created a nice doc with a collection of high level items they have on tap the next 6-12 months. Note it is a living document that changes based on the requirements of the library's users.

Compare Code

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

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

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)