SkiaSharp.Views.Blazor 4.155.0-preview.1.26471.14

SkiaSharp.Views.Blazor

NuGet NuGet downloads License: MIT

SkiaSharp.Views.Blazor brings SkiaSharp to Blazor WebAssembly with ready-to-use Razor components. Draw with the same SkiaSharp API used by native .NET applications while the package handles the browser canvas, JavaScript interop, input events, and WebAssembly native assets.

What you get

  • SKCanvasView for CPU-rendered, on-demand drawing to an HTML canvas.
  • SKGLView for WebGL-backed rendering and continuous animation.
  • Pointer, wheel, and touch input events.
  • Density-aware sizing and explicit invalidation.
  • Transitive WebAssembly native assets and build integration.

Get started

Install the package into a Blazor WebAssembly project:

dotnet add package SkiaSharp.Views.Blazor

Add the namespaces to _Imports.razor:

@using SkiaSharp
@using SkiaSharp.Views.Blazor

Add a canvas to a Razor component:

<SKCanvasView OnPaintSurface="OnPaintSurface"
              IgnorePixelScaling="true" />

@code {
    private void OnPaintSurface(SKPaintSurfaceEventArgs e)
    {
        var canvas = e.Surface.Canvas;
        canvas.Clear(SKColors.White);

        using var paint = new SKPaint
        {
            Color = SKColors.CornflowerBlue,
            IsAntialias = true,
        };

        canvas.DrawCircle(
            e.Info.Width / 2f,
            e.Info.Height / 2f,
            Math.Min(e.Info.Width, e.Info.Height) * 0.3f,
            paint);
    }
}

The package supplies its browser interop automatically. Use .NET 8 or later for a complete WebAssembly application with the supported native assets. For animated or GPU-heavy scenes, switch to SKGLView and enable its render loop.

See it running

Documentation and resources

Feedback and contributing

SkiaSharp is an open-source Microsoft project built with the .NET community. Use GitHub Discussions for questions, file bugs and feature requests in the issue tracker, and read the contributing guide to get involved.

This package is released under the MIT license.

Showing the top 20 packages that depend on SkiaSharp.Views.Blazor.

Packages Downloads
CodeBeam.MudBlazor.Extensions
MudBlazor extension components from contributors. Includes 25+ components and utilities.
10

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

.NET 10.0

.NET 6.0

.NET 9.0

Version Downloads Last updated
4.156.0-preview.1.26512.10 0 15.10.2026
4.155.0-rc.1.26512.8 0 15.10.2026
4.155.0-preview.2.26479.13 0 30.09.2026
4.155.0-preview.1.26471.14 1 01.10.2026
4.154.0-rc.1.26479.14 0 30.09.2026
4.154.0-preview.2.26471.11 1 01.10.2026
4.154.0-preview.1.26454.9 1 01.10.2026
4.153.1 0 30.09.2026
4.153.0 1 30.09.2026
4.153.0-rc.1.26456.2 1 01.10.2026
4.153.0-preview.1.26454.6 1 01.10.2026
4.152.3 0 30.09.2026
4.152.2 1 30.09.2026
4.152.1 1 30.09.2026
4.152.0 1 30.09.2026
4.152.0-rc.1.26426.14 1 30.09.2026
4.152.0-preview.1.1 3 25.08.2026
4.151.5 0 30.09.2026
4.151.4 1 30.09.2026
4.151.3 1 30.09.2026
4.151.2 1 30.09.2026
4.151.1 3 25.08.2026
4.151.0 3 25.08.2026
4.151.0-rc.1.1 4 25.08.2026
4.151.0-preview.2.1 6 21.07.2026
4.151.0-preview.1.1 3 09.07.2026
4.150.5 0 30.09.2026
4.150.4 1 30.09.2026
4.150.3 1 30.09.2026
4.150.2 4 25.08.2026
4.150.1 5 21.07.2026
4.150.0 6 09.07.2026
4.150.0-rc.1.1 5 01.07.2026
4.150.0-preview.2.1 5 01.07.2026
4.150.0-preview.1.1 5 21.06.2026
4.148.0 5 01.07.2026
4.148.0-rc.1.2 5 21.06.2026
4.147.0-preview.3.1 5 26.05.2026
4.147.0-preview.2.1 6 17.05.2026
4.147.0-preview.1.1 8 04.05.2026
3.119.4 6 26.05.2026
3.119.4-preview.1.1 6 28.04.2026
3.119.3-preview.1.1 6 20.02.2026
3.119.2 7 11.02.2026
3.119.2-preview.3.1 4 11.02.2026
3.119.2-preview.2.3 7 11.02.2026
3.119.2-preview.1 5 19.12.2025
3.119.1 7 19.12.2025
3.119.1-preview.1 8 19.12.2025
3.119.0 9 05.09.2025
3.119.0-stable.1 6 05.09.2025
3.119.0-preview.1.2 6 05.09.2025
3.118.0-preview.2.3 6 05.09.2025
3.118.0-preview.1.2 9 05.09.2025
3.116.1 9 05.09.2025
3.116.0 9 05.09.2025
3.116.0-preview.6.1 5 05.09.2025
3.0.0-preview.5.4 8 05.09.2025
3.0.0-preview.4.1 8 05.09.2025
3.0.0-preview.3.1 8 05.09.2025
3.0.0-preview.2.1 7 05.09.2025
3.0.0-preview.1.8 6 05.09.2025
3.0.0-preview.0.132 8 05.09.2025
2.88.9 8 05.09.2025
2.88.9-preview.2.2 5 05.09.2025
2.88.9-preview.1.1 9 05.09.2025
2.88.8 10 05.09.2025
2.88.8-preview.1.1 6 05.09.2025
2.88.7 8 05.09.2025
2.88.6 9 05.09.2025
2.88.6-preview.1.2 7 05.09.2025
2.88.5 9 05.09.2025
2.88.4 10 05.09.2025
2.88.4-preview.96 7 05.09.2025
2.88.4-preview.95 8 05.09.2025
2.88.4-preview.89 9 05.09.2025
2.88.4-preview.84 8 05.09.2025
2.88.4-preview.82 5 05.09.2025
2.88.4-preview.76 8 05.09.2025
2.88.4-preview.70 7 05.09.2025
2.88.3 9 05.09.2025
2.88.2 8 05.09.2025
2.88.2-preview.8 8 05.09.2025
2.88.1 10 05.09.2025
2.88.1-preview.108 5 05.09.2025
2.88.1-preview.104 5 05.09.2025
2.88.1-preview.91 6 05.09.2025
2.88.1-preview.79 8 05.09.2025
2.88.1-preview.75 6 05.09.2025
2.88.1-preview.71 8 05.09.2025
2.88.1-preview.63 8 05.09.2025
2.88.1-preview.1 8 05.09.2025
2.88.0 9 05.09.2025
2.88.0-preview.266 9 05.09.2025
2.88.0-preview.256 8 05.09.2025
2.88.0-preview.254 5 05.09.2025
2.88.0-preview.232 7 05.09.2025
2.88.0-preview.209 9 05.09.2025
2.88.0-preview.187 6 05.09.2025
2.88.0-preview.179 5 05.09.2025
2.88.0-preview.178 6 05.09.2025
2.88.0-preview.155 6 05.09.2025
2.88.0-preview.152 8 05.09.2025
2.88.0-preview.150 6 05.09.2025