RecursiveAI.OneRender.Image
1.2.0
See the version list below for details.
dotnet add package RecursiveAI.OneRender.Image --version 1.2.0
NuGet\Install-Package RecursiveAI.OneRender.Image -Version 1.2.0
<PackageReference Include="RecursiveAI.OneRender.Image" Version="1.2.0" />
<PackageVersion Include="RecursiveAI.OneRender.Image" Version="1.2.0" />
<PackageReference Include="RecursiveAI.OneRender.Image" />
paket add RecursiveAI.OneRender.Image --version 1.2.0
#r "nuget: RecursiveAI.OneRender.Image, 1.2.0"
#:package RecursiveAI.OneRender.Image@1.2.0
#addin nuget:?package=RecursiveAI.OneRender.Image&version=1.2.0
#tool nuget:?package=RecursiveAI.OneRender.Image&version=1.2.0
RecursiveAI.OneRender.Image
Turns a OneRender display list into pixels through OneImage. It is the reference rasterizer for the engine's tests.
using OneRender.Image;
RgbaImage image = HtmlRender.ToImage(html, new HtmlRenderOptions { Width = 800, Height = 600, DevicePixelRatio = 2 });
byte[] png = image.ToPng();
HtmlRender.ToImage is the happy path; DisplayListRasterizer renders any display list, or a region of it, which is what a viewer with damage regions wants. The package references RecursiveAI.OneRender.Fonts, so the default fonts need no setup. ColorGlyphBitmaps decodes the PNG glyph images of color bitmap fonts for backends that draw them.
Part of OneRender, an HTML and CSS layout and rendering engine for .NET: https://github.com/recursive-ai-oss/onerender-csharp. Licence MIT OR Apache-2.0; see THIRD-PARTY-NOTICES.md in the package for bundled third-party material.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- RecursiveAI.OneImage (>= 1.10.2)
- RecursiveAI.OneImage.Svg (>= 1.10.2)
- RecursiveAI.OneRender (>= 1.2.0)
- RecursiveAI.OneRender.Fonts (>= 1.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on RecursiveAI.OneRender.Image:
| Package | Downloads |
|---|---|
|
RecursiveAI.OneRender.Razor
Renders a Razor component to PDF or an image in one call. |
|
|
RecursiveAI.OneRender.Pdf
Writes a OneRender display list as a tagged PDF through OnePdf. |
GitHub repositories
This package is not used by any popular GitHub repositories.