SkiaSharp 4.158.0-preview.1.26556.2

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
DevExpress.Drawing.Skia
This package implements the cross-platform drawing functionality based on the Skia Graphics Library.
19
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
17
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
16
SkiaSharp.NativeAssets.Linux
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.
15
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
15
SkiaSharp.NativeAssets.Linux
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.
14
SkiaSharp.HarfBuzz
This package adds text shaping support to SkiaSharp via HarfBuzz.
14

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

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET 10.0

.NET Framework 4.6.2

.NET Framework 4.8

.NET 6.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET 9.0

.NET Standard 2.0

.NET Standard 2.1

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