AngleSharp.Renderer
0.12.0-beta.212
See the version list below for details.
dotnet add package AngleSharp.Renderer --version 0.12.0-beta.212
NuGet\Install-Package AngleSharp.Renderer -Version 0.12.0-beta.212
<PackageReference Include="AngleSharp.Renderer" Version="0.12.0-beta.212" />
<PackageVersion Include="AngleSharp.Renderer" Version="0.12.0-beta.212" />
<PackageReference Include="AngleSharp.Renderer" />
paket add AngleSharp.Renderer --version 0.12.0-beta.212
#r "nuget: AngleSharp.Renderer, 0.12.0-beta.212"
#:package AngleSharp.Renderer@0.12.0-beta.212
#addin nuget:?package=AngleSharp.Renderer&version=0.12.0-beta.212&prerelease
#tool nuget:?package=AngleSharp.Renderer&version=0.12.0-beta.212&prerelease

AngleSharp.Renderer
AngleSharp.Renderer extends the core AngleSharp library with some more powerful rendering capabilities. This repository is the home of the source for the AngleSharp.Renderer NuGet package.
Current Status
AngleSharp.Renderer lays out and paints HTML, CSS and SVG documents headlessly:
- Block, inline, float, flexbox, grid, table and multi-column layout, positioning (including
sticky), writing modes and bidirectional text - Text shaped with HarfBuzz,
@font-faceweb fonts (WOFF/WOFF2), bundled fonts for reproducible output - Backgrounds, gradients, borders, shadows, transforms, filters, masks, blend modes and clipping
- Inline and external SVG, images (also animated GIF/WebP),
<canvas>with a 2D context, form controls - An interactive harness for hover, scrolling, text selection, CSS transitions and animations on a virtual clock, plus the CSSOM View geometry APIs (
getBoundingClientRect,elementFromPoint, ...) - A backend-agnostic display list, rasterized by a SkiaSharp backend to PNG or raw pixels
It is not a full browser: there are no 3D transforms and no paged media, and resources are loaded through AngleSharp's own document loader. See the documentation for details.
Quick Start
using AngleSharp;
using AngleSharp.Css;
using AngleSharp.Renderer;
var device = new DefaultRenderDevice { ViewPortWidth = 800, ViewPortHeight = 450 };
var config = Configuration.Default.WithCss().WithRenderDevice(device).WithRendering();
var context = BrowsingContext.New(config);
var document = await context.OpenAsync(req => req.Content(@"
<html>
<body>
<h1>Hello Renderer</h1>
<p>This page was rendered by AngleSharp.Renderer.</p>
</body>
</html>"));
var image = document.RenderToPng();
await File.WriteAllBytesAsync("render.png", image.Data);
The render device's viewport is the size of the image; without one, documents render at 800×600. RenderToImage takes RenderOptions for full-page, clipped, element and HiDPI captures, and for JPEG or WebP:
var page = document.RenderToImage(new RenderOptions { FullPage = true, DeviceScaleFactor = 2f });
var card = document.QuerySelector(".card")!.RenderToImage();
WithRendering() adds support for <canvas> elements (with a 2D drawing context) and for <img> data.
Design Direction
The current architecture is intentionally split into two layers:
- Core: DOM/CSS integration, layout model, display-list generation
- Backend: rasterization (currently SkiaSharp)
This keeps future work open for additional backends and interactive rendering scenarios.
.NET Foundation
This project is supported by the .NET Foundation.
License
AngleSharp.Renderer is released using the MIT license. For more information see the license file.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AngleSharp (>= 1.10.0 && < 2.0.0)
- AngleSharp.Css (>= 1.4.1 && < 2.0.0)
- HarfBuzzSharp.NativeAssets.Linux (>= 7.3.0.3)
- SkiaSharp (>= 2.88.9)
- SkiaSharp.HarfBuzz (>= 2.88.9)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.9)
-
net8.0
- AngleSharp (>= 1.10.0 && < 2.0.0)
- AngleSharp.Css (>= 1.4.1 && < 2.0.0)
- HarfBuzzSharp.NativeAssets.Linux (>= 7.3.0.3)
- SkiaSharp (>= 2.88.9)
- SkiaSharp.HarfBuzz (>= 2.88.9)
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.9)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AngleSharp.Renderer:
| Package | Downloads |
|---|---|
|
AngleSharp.Browser
A UI-agnostic browser engine bringing the AngleSharp ecosystem together. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.1-beta.220 | 0 | 11/19/2026 |
| 0.12.0 | 0 | 11/18/2026 |
| 0.12.0-beta.216 | 6 | 11/18/2026 |
| 0.12.0-beta.215 | 48 | 11/17/2026 |
| 0.12.0-beta.213 | 48 | 11/17/2026 |
| 0.12.0-beta.212 | 46 | 11/17/2026 |
| 0.12.0-beta.203 | 66 | 11/16/2026 |
| 0.11.4 | 82 | 11/16/2026 |
| 0.11.4-beta.200 | 52 | 11/16/2026 |
| 0.11.4-beta.189 | 47 | 11/16/2026 |
| 0.11.3 | 80 | 11/13/2026 |
| 0.11.3-beta.179 | 54 | 11/13/2026 |
| 0.11.3-beta.177 | 53 | 11/13/2026 |
| 0.11.3-beta.175 | 53 | 11/13/2026 |
| 0.11.3-beta.173 | 54 | 11/13/2026 |
| 0.11.3-beta.171 | 60 | 11/13/2026 |
| 0.11.3-beta.166 | 55 | 11/13/2026 |
| 0.11.3-beta.165 | 57 | 11/13/2026 |
| 0.11.3-beta.164 | 56 | 11/13/2026 |
| 0.11.3-beta.160 | 58 | 11/12/2026 |