SkiaSharp 4.157.0-preview.1.26556.1

SkiaSharp

NuGet NuGet downloads License: MIT

SkiaSharp is a cross-platform 2D graphics API for .NET powered by Google's Skia graphics engine. Draw vector graphics, render text, process images, apply shaders and filters, and produce consistent output across mobile, desktop, server, and WebAssembly applications.

What you can build

  • Rich 2D graphics - paths, shapes, text, images, color spaces, shaders, filters, blend modes, and more.
  • Cross-platform - Windows, macOS, Linux, Android, iOS, Mac Catalyst, tvOS, Tizen, and WebAssembly.
  • CPU and GPU rendering - software rasterization plus OpenGL, Metal, Vulkan, and Direct3D integrations.
  • Broad output support - render to pixels, encode common image formats, create PDFs, or generate SVG.
  • Native performance with an idiomatic C# API - the same Skia engine used by Chrome, Android, Flutter, and many other products.
  • Open source - developed in the open by Microsoft and the .NET community under the MIT license.

Get started

Install the package:

dotnet add package SkiaSharp

Create an image and save it as a PNG:

using SkiaSharp;

var info = new SKImageInfo(640, 360);
using var surface = SKSurface.Create(info);
var canvas = surface.Canvas;

canvas.Clear(new SKColor(0x0B, 0x10, 0x20));

using var shader = SKShader.CreateLinearGradient(
    new SKPoint(0, 0),
    new SKPoint(info.Width, info.Height),
    new[] { new SKColor(0x44, 0x88, 0xFF), new SKColor(0xB8, 0x44, 0xE8) },
    SKShaderTileMode.Clamp);
using var paint = new SKPaint
{
    IsAntialias = true,
    Shader = shader,
};

canvas.DrawCircle(info.Width / 2f, info.Height / 2f, 120, paint);

using var image = surface.Snapshot();
using var data = image.Encode(SKEncodedImageFormat.Png, 100);
using var output = File.Create("hello-skiasharp.png");
data.SaveTo(output);

Linux: add SkiaSharp.NativeAssets.Linux to the application project for fontconfig integration, or SkiaSharp.NativeAssets.Linux.NoDependencies for minimal containers and explicit font loading. See the package deployment guide for details.

Choose the right integration

Scenario Package
Draw into bitmaps, images, surfaces, PDFs, and SVG SkiaSharp
.NET MAUI controls SkiaSharp.Views.Maui.Controls
Blazor WebAssembly components SkiaSharp.Views.Blazor
Android, iOS, Mac Catalyst, macOS, tvOS, and Tizen native views SkiaSharp.Views
WPF, Windows Forms, WinUI, or GTK controls Use the matching SkiaSharp.Views.* package
Complex text shaping SkiaSharp.HarfBuzz
Lottie animation playback SkiaSharp.Skottie

Learn and explore

Feedback and contributing

SkiaSharp is built in the open. Use GitHub Discussions for questions, file bugs and feature requests in the issue tracker, and read the contributing guide to help improve the project.

SkiaSharp is released under the MIT license.

Showing the top 20 packages that depend on SkiaSharp.

Packages Downloads
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
42
Avalonia.Skia
Avalonia is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.
41
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
41
Avalonia.Skia
The Avalonia UI framework
41
Avalonia.Skia
Package Description
41
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
40
Avalonia.Skia
Avalonia is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.
40
Avalonia.Skia
Package Description
40
Avalonia.Skia
Avalonia is a cross-platform UI framework for .NET providing a flexible styling system and supporting a wide range of Operating Systems such as Windows, Linux, macOS and with experimental support for Android, iOS and WebAssembly.
39
Avalonia.Skia
Avalonia is a WPF/UWP-inspired cross-platform XAML-based UI framework providing a flexible styling system and supporting a wide range of Operating Systems such as Windows (.NET Framework, .NET Core), Linux (via Xorg), MacOS and with experimental support for Android and iOS.
39

Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes.

.NET 10.0

.NET Standard 2.1

.NET Standard 2.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 6.0

.NET Framework 4.8

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET Framework 4.6.2

.NET 10.0

Version Downloads Last updated
4.159.0-rc.1.26567.13 1 11/21/2026
4.159.0-preview.1.26563.22 2 11/18/2026
4.158.0-rc.1.26567.14 1 11/21/2026
4.158.0-preview.3.26563.17 2 11/18/2026
4.158.0-preview.2.26560.5 3 11/13/2026
4.158.0-preview.1.26556.2 4 11/13/2026
4.157.0 1 11/18/2026
4.157.0-rc.2.26563.19 0 11/16/2026
4.157.0-rc.1.26560.6 3 11/14/2026
4.157.0-preview.1.26556.1 4 11/13/2026
4.156.2 0 11/18/2026
4.156.1 2 11/18/2026
4.156.0 4 11/14/2026
4.156.0-rc.1.26553.11 3 11/13/2026
4.156.0-preview.1.26512.10 5 10/26/2026
4.155.2 1 11/18/2026
4.155.1 1 11/18/2026
4.155.0 4 11/09/2026
4.155.0-rc.1.26512.8 4 10/21/2026
4.155.0-preview.2.26479.13 5 09/30/2026
4.155.0-preview.1.26471.14 4 09/30/2026
4.154.1 2 11/14/2026
4.154.0 4 10/30/2026
4.154.0-rc.1.26479.14 5 09/30/2026
4.154.0-preview.2.26471.11 4 09/30/2026
4.154.0-preview.1.26454.9 6 09/23/2026
4.153.3 8 11/13/2026
4.153.2 3 10/30/2026
4.153.1 5 09/30/2026
4.153.0 6 09/30/2026
4.153.0-rc.1.26456.2 5 09/23/2026
4.153.0-preview.1.26454.6 5 09/23/2026
4.152.5 3 11/14/2026
4.152.4 4 10/30/2026
4.152.3 5 09/30/2026
4.152.2 5 09/30/2026
4.152.1 9 09/23/2026
4.152.0 6 09/23/2026
4.152.0-rc.1.26426.14 7 08/29/2026
4.152.0-preview.1.1 13 08/14/2026
4.151.6 1 11/14/2026
4.151.5 5 09/30/2026
4.151.4 6 09/30/2026
4.151.3 7 09/23/2026
4.151.2 6 09/23/2026
4.151.1 8 08/14/2026
4.151.0 10 08/01/2026
4.151.0-rc.1.1 12 07/23/2026
4.151.0-preview.2.1 10 07/14/2026
4.151.0-preview.1.1 10 07/03/2026
4.150.7 3 11/13/2026
4.150.6 3 11/14/2026
4.150.5 4 09/30/2026
4.150.4 5 09/30/2026
4.150.3 6 09/23/2026
4.150.2 8 08/14/2026
4.150.1 10 07/14/2026
4.150.0 11 07/09/2026
4.150.0-rc.1.1 14 07/02/2026
4.150.0-preview.2.1 14 06/27/2026
4.150.0-preview.1.1 12 06/19/2026
4.148.0 12 06/27/2026
4.148.0-rc.1.2 13 06/19/2026
4.147.0-preview.3.1 14 05/26/2026
4.147.0-preview.2.1 16 05/16/2026
4.147.0-preview.1.1 14 05/02/2026
3.119.4 15 05/26/2026
3.119.4-preview.1.1 16 04/24/2026
3.119.3-preview.1.1 19 02/19/2026
3.119.2 18 02/08/2026
3.119.2-preview.3.1 20 02/06/2026
3.119.2-preview.2.3 20 02/01/2026
3.119.2-preview.1 29 10/26/2025
3.119.1 30 10/26/2025
3.119.1-preview.1 29 09/10/2025
3.119.0 35 05/22/2025
3.119.0-stable.1 26 05/22/2025
3.119.0-preview.1.2 33 05/22/2025
3.118.0-preview.2.3 30 02/19/2025
3.118.0-preview.1.2 35 02/19/2025
3.116.1 31 02/19/2025
3.116.0 37 02/19/2025
3.116.0-preview.6.1 32 02/19/2025
3.0.0-preview.5.4 37 02/19/2025
3.0.0-preview.4.1 35 02/19/2025
3.0.0-preview.3.1 34 02/19/2025
3.0.0-preview.2.1 34 02/19/2025
3.0.0-preview.1.8 40 02/19/2025
3.0.0-preview.0.132 32 02/19/2025
2.88.9 31 02/19/2025
2.88.9-preview.2.2 32 02/19/2025
2.88.9-preview.1.1 30 02/19/2025
2.88.8 36 02/19/2025
2.88.8-preview.1.1 37 02/19/2025
2.88.7 37 02/19/2025
2.88.6 33 02/19/2025
2.88.6-preview.1.2 36 02/19/2025
2.88.5 37 02/19/2025
2.88.4 35 02/19/2025
2.88.4-preview.96 32 02/19/2025
2.88.4-preview.95 37 02/19/2025
2.88.4-preview.89 30 02/19/2025
2.88.4-preview.84 35 02/19/2025
2.88.4-preview.82 35 02/19/2025
2.88.4-preview.76 40 02/19/2025
2.88.4-preview.70 37 02/19/2025
2.88.3 36 02/19/2025
2.88.2 34 02/19/2025
2.88.2-preview.8 36 02/19/2025
2.88.1 34 02/19/2025
2.88.1-preview.108 35 02/19/2025
2.88.1-preview.104 38 02/19/2025
2.88.1-preview.91 32 02/19/2025
2.88.1-preview.79 38 02/19/2025
2.88.1-preview.75 36 02/19/2025
2.88.1-preview.71 33 02/19/2025
2.88.1-preview.63 37 02/19/2025
2.88.1-preview.1 39 02/19/2025
2.88.0 32 02/19/2025
2.88.0-preview.266 34 02/19/2025
2.88.0-preview.256 36 02/19/2025
2.88.0-preview.254 29 02/19/2025
2.88.0-preview.232 34 02/19/2025
2.88.0-preview.209 31 02/19/2025
2.88.0-preview.187 38 02/19/2025
2.88.0-preview.179 35 02/19/2025
2.88.0-preview.178 36 02/19/2025
2.88.0-preview.155 33 02/19/2025
2.88.0-preview.152 35 02/19/2025
2.88.0-preview.150 31 02/19/2025
2.88.0-preview.145 33 02/19/2025
2.88.0-preview.140 34 02/19/2025
2.88.0-preview.139 34 02/19/2025
2.88.0-preview.127 31 02/19/2025
2.88.0-preview.120 31 02/19/2025
2.88.0-preview.61 37 02/19/2025
2.80.4 36 02/19/2025
2.80.4-preview.9 34 02/19/2025
2.80.4-preview.6 32 02/26/2025
2.80.4-preview.5 34 02/19/2025
2.80.4-preview.2 36 02/19/2025
2.80.3 33 02/19/2025
2.80.3-preview.93 35 02/19/2025
2.80.3-preview.90 38 02/19/2025
2.80.3-preview.40 36 02/26/2025
2.80.3-preview.24 37 02/19/2025
2.80.3-preview.18 37 02/19/2025
2.80.2 33 02/19/2025
2.80.2-preview.36 34 02/19/2025
2.80.2-preview.33 32 02/19/2025
2.80.2-preview.19 37 02/19/2025
2.80.2-preview.18 37 02/19/2025
2.80.2-preview.9 34 02/19/2025
2.80.1 37 02/19/2025
2.80.0 35 02/19/2025
2.80.0-preview.33 33 02/19/2025
2.80.0-preview.24 34 02/19/2025
2.80.0-preview.14 35 02/19/2025
2.80.0-preview.12 37 02/19/2025
2.80.0-preview.3 30 02/19/2025
1.68.3 33 02/19/2025
1.68.3-preview.2 38 02/19/2025
1.68.2.1 37 02/19/2025
1.68.2 34 02/19/2025
1.68.2-preview.60 39 02/19/2025
1.68.2-preview.50 35 02/19/2025
1.68.2-preview.45 38 02/19/2025
1.68.2-preview.43 33 02/19/2025
1.68.2-preview.39 33 02/26/2025
1.68.2-preview.29 32 02/19/2025
1.68.2-preview.21 32 02/19/2025
1.68.2-preview.17 35 02/19/2025
1.68.1.1 35 02/19/2025
1.68.1.1-preview.9 38 02/19/2025
1.68.1 35 02/19/2025
1.68.1-rc.172 38 02/19/2025
1.68.1-rc.170 38 02/19/2025
1.68.1-rc.169 38 02/19/2025
1.68.1-rc.165 34 02/19/2025
1.68.1-rc.153 37 02/19/2025
1.68.1-rc.147 38 02/19/2025
1.68.0 37 02/19/2025
1.68.0-preview28 34 02/19/2025
1.60.3 35 02/19/2025
1.60.2 37 02/19/2025
1.60.1 36 02/19/2025
1.60.0 34 02/19/2025
1.59.3 34 02/19/2025
1.59.2 34 02/19/2025
1.59.1 37 02/19/2025
1.59.0 37 02/19/2025
1.58.1 36 02/19/2025
1.58.0 36 02/19/2025
1.57.1 33 02/19/2025
1.57.0 34 02/19/2025
1.56.2 33 02/19/2025
1.56.1 33 02/19/2025
1.56.1-beta 37 02/19/2025
1.56.0 31 02/19/2025
1.55.1 35 02/19/2025
1.55.0 36 02/19/2025
1.54.1 33 02/19/2025
1.54.0 35 02/27/2025
1.53.2-svg1 35 02/19/2025
1.53.2-gpu2 37 02/19/2025
1.53.2-gpu1 36 02/19/2025
1.53.1.2 33 02/19/2025
1.53.1.1 29 02/19/2025
1.53.1 34 02/19/2025
1.53.0 36 02/19/2025
1.49.4-beta 33 02/19/2025
1.49.3-beta 34 02/19/2025
1.49.2.1-beta 34 02/19/2025
1.49.2-beta 37 02/19/2025
1.49.1 37 02/19/2025
1.49.0-preview1 34 02/19/2025