PictureSharp.Drawing
0.9.0
dotnet add package PictureSharp.Drawing --version 0.9.0
NuGet\Install-Package PictureSharp.Drawing -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.Drawing" Version="0.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PictureSharp.Drawing" Version="0.9.0" />
<PackageReference Include="PictureSharp.Drawing" />
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.Drawing --version 0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PictureSharp.Drawing, 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.Drawing@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.Drawing&version=0.9.0
#tool nuget:?package=PictureSharp.Drawing&version=0.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
PictureSharp.Drawing
Copies PictureSharp images to and from System.Drawing.Bitmap (GDI+, Windows only).
using PictureSharp;
using PictureSharp.Drawing;
using Bitmap = System.Drawing.Bitmap;
using Image image = Image.Load("logo.png");
using Bitmap bitmap = image.ToBitmap(); // Format32bppArgb with straight alpha
using Image back = Image.FromBitmap(bitmap); // any GDI+ pixel format
- Every conversion copies; the result belongs to the caller. Row padding, bottom-up strides and resolution are handled.
ToBitmapwritesFormat32bppArgb(exact),Format32bppPArgb(premultiplied),Format24bppRgborFormat32bppRgb(alpha dropped).- 16-bit images (
PixelType.Rgba64) are rounded to 8 bits per channel;FromBitmapalways returns 8-bit images. ImageFrame.ToBitmap()copies one animation frame.
Depends only on PictureSharp and System.Drawing.Common. 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)
- System.Drawing.Common (>= 10.0.0)
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 | 50 | 10/28/2026 |
| 0.8.5 | 84 | 10/26/2026 |
| 0.8.4 | 83 | 10/26/2026 |
| 0.8.3 | 83 | 10/26/2026 |
| 0.8.2 | 86 | 10/25/2026 |
| 0.8.1 | 88 | 10/23/2026 |
| 0.8.0 | 91 | 10/23/2026 |
| 0.7.13 | 90 | 10/22/2026 |
| 0.7.12 | 87 | 10/22/2026 |
| 0.7.10 | 84 | 10/22/2026 |
| 0.7.9 | 84 | 10/21/2026 |
| 0.7.8 | 89 | 10/21/2026 |
| 0.7.7 | 90 | 10/20/2026 |
| 0.7.6 | 90 | 10/18/2026 |
| 0.7.5 | 88 | 10/18/2026 |
| 0.7.4 | 89 | 10/18/2026 |
| 0.7.3 | 87 | 10/18/2026 |
| 0.7.2 | 90 | 10/17/2026 |
| 0.7.1 | 90 | 10/17/2026 |
| 0.7.0 | 83 | 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