HPPH.SkiaSharp
2.0.0
dotnet add package HPPH.SkiaSharp --version 2.0.0
NuGet\Install-Package HPPH.SkiaSharp -Version 2.0.0
<PackageReference Include="HPPH.SkiaSharp" Version="2.0.0" />
<PackageVersion Include="HPPH.SkiaSharp" Version="2.0.0" />
<PackageReference Include="HPPH.SkiaSharp" />
paket add HPPH.SkiaSharp --version 2.0.0
#r "nuget: HPPH.SkiaSharp, 2.0.0"
#:package HPPH.SkiaSharp@2.0.0
#addin nuget:?package=HPPH.SkiaSharp&version=2.0.0
#tool nuget:?package=HPPH.SkiaSharp&version=2.0.0
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 | 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. net11.0 is compatible. |
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
|