PictureSharp.Skia
0.9.0
dotnet add package PictureSharp.Skia --version 0.9.0
NuGet\Install-Package PictureSharp.Skia -Version 0.9.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="PictureSharp.Skia" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PictureSharp.Skia" Version="0.9.0" />
<PackageReference Include="PictureSharp.Skia" />
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 PictureSharp.Skia --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PictureSharp.Skia, 0.9.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 PictureSharp.Skia@0.9.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=PictureSharp.Skia&version=0.9.0
#tool nuget:?package=PictureSharp.Skia&version=0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PictureSharp.Skia
Copies PictureSharp images to and from SkiaSharp SKBitmap, SKImage and SKPixmap.
using PictureSharp;
using PictureSharp.Skia;
using SkiaSharp;
using Image image = Image.Load("photo.png");
using SKBitmap bitmap = image.ToSKBitmap(); // Rgba8888, Unpremul
using SKImage skImage = image.ToSKImage(SKColorType.Bgra8888, SKAlphaType.Premul);
using Image back = Image.FromSKBitmap(bitmap); // any color and alpha type
using Image image16 = Image.Load("scan.png", new DecoderOptions { PreserveBitDepth = true });
using SKBitmap deep = image16.ToSKBitmap(SKColorType.Rgba16161616); // 16 bits per channel, exact
using Image deepBack = Image.FromSKBitmap(deep, PixelType.Rgba64);
- Every conversion copies; the result belongs to the caller.
- PictureSharp stores straight alpha; choose
SKAlphaType.Unpremul(bit-exact) orSKAlphaType.Premulexplicitly. Reading always un-premultiplies, and anOpaquesource gives alpha 255. - 16-bit images (
PixelType.Rgba64) copy exactly to and fromRgba16161616; the 8-bit color types round them once. TheFrom*methods returnPixelType.Rgba32unless you passPixelType.Rgba64. - No color-space conversion: call
ConvertToSrgb()first for images with another ICC profile. - Add the SkiaSharp native assets for your platform, for example
SkiaSharp.NativeAssets.Linux.
Depends only on PictureSharp and SkiaSharp. Guide: Adapters. License: MIT.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- PictureSharp (>= 0.9.0)
- SkiaSharp (>= 3.119.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0 | 78 | 10/28/2026 |
| 0.8.5 | 90 | 10/26/2026 |
| 0.8.4 | 94 | 10/26/2026 |
| 0.8.3 | 86 | 10/26/2026 |
| 0.8.2 | 90 | 10/25/2026 |
| 0.8.1 | 90 | 10/23/2026 |
| 0.8.0 | 94 | 10/23/2026 |
| 0.7.13 | 91 | 10/22/2026 |
| 0.7.12 | 91 | 10/22/2026 |
| 0.7.10 | 90 | 10/22/2026 |
| 0.7.9 | 87 | 10/21/2026 |
| 0.7.8 | 91 | 10/21/2026 |
| 0.7.7 | 92 | 10/20/2026 |
| 0.7.6 | 93 | 10/18/2026 |
| 0.7.5 | 92 | 10/18/2026 |
| 0.7.4 | 103 | 10/18/2026 |
| 0.7.3 | 95 | 10/18/2026 |
| 0.7.2 | 92 | 10/17/2026 |
| 0.7.1 | 97 | 10/17/2026 |
| 0.7.0 | 91 | 10/17/2026 |
Loading failed
0.9.0: 16-bit image processing, PNG read/write, typed pixel access and updated adapters. Breaking pixel API and plugin API changes; normalized settings use 0-1. Migration: https://github.com/art-ix/PictureSharp/blob/v0.9.0/docs/migration-from-0.8.md