HPPH.SkiaSharp 2.0.0

dotnet add package HPPH.SkiaSharp --version 2.0.0
                    
NuGet\Install-Package HPPH.SkiaSharp -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="HPPH.SkiaSharp" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HPPH.SkiaSharp" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="HPPH.SkiaSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HPPH.SkiaSharp --version 2.0.0
                    
#r "nuget: HPPH.SkiaSharp, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package HPPH.SkiaSharp@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HPPH.SkiaSharp&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=HPPH.SkiaSharp&version=2.0.0
                    
Install as a Cake Tool

HPPH.SkiaSharp

SkiaSharp extensions for HPPH.

All methods copy the pixels, the resulting images don't depend on the source.
Premultiplied sources are converted to straight alpha.

Loading

using HPPH.SkiaSharp;

Image<ColorBGRA> image = ImageHelper.LoadImage("image.png");
Image<ColorRGB> image2 = ImageHelper.LoadImage<ColorRGB>(stream);

Throws an InvalidDataException if SkiaSharp can't decode the data.

Converting

// SkiaSharp -> HPPH
Image<ColorBGRA> image = skImage.ToImage();
Image<ColorRGB> image2 = skBitmap.ToImage<ColorRGB>();

// HPPH -> SkiaSharp
using SKImage newImage = image.ToSKImage();
using SKBitmap newBitmap = image.ToSKBitmap();
using SKBitmap regionBitmap = image[10, 10, 100, 50].ToSKBitmap();

byte[] png = image.ToPng();

ToSKImage and ToSKBitmap create Rgba8888 for ColorRGBA-images and Bgra8888 for everything else.
They take an Image<T>, RefImage<T> or IImage, so they work with every color format.

Product 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.  net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on HPPH.SkiaSharp:

Package Downloads
ArtemisRGB.Core

Package Description

Fuuga.Image

This package contains MCP tools for image generation. So Fuuga (or other agents) can gain image generation capabilities via other (Stable Diffusion) models from for example HuggingFace.

Fuuga.Image.cpu

This package contains MCP tools for image generation. So Fuuga (or other agents) can gain image generation capabilities via other (Stable Diffusion) models from for example HuggingFace.

Fuuga.Image.cuda-linux

This package contains MCP tools for image generation. So Fuuga (or other agents) can gain image generation capabilities via other (Stable Diffusion) models from for example HuggingFace.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on HPPH.SkiaSharp:

Repository Stars
Artemis-RGB/Artemis
Provides advanced unified lighting across many different brands RGB peripherals
lindexi/lindexi_gd
博客用到的代码
mobitouchOS/MaIN.NET
NuGet package designed to make LLMs, RAG, and Agents first-class citizens in .NET
Version Downloads Last Updated
2.0.0 0 11/14/2026
1.0.0 11,049 7/21/2024