JeremyAnsel.ColorQuant
3.0.74
dotnet add package JeremyAnsel.ColorQuant --version 3.0.74
NuGet\Install-Package JeremyAnsel.ColorQuant -Version 3.0.74
<PackageReference Include="JeremyAnsel.ColorQuant" Version="3.0.74" />
<PackageVersion Include="JeremyAnsel.ColorQuant" Version="3.0.74" />
<PackageReference Include="JeremyAnsel.ColorQuant" />
paket add JeremyAnsel.ColorQuant --version 3.0.74
#r "nuget: JeremyAnsel.ColorQuant, 3.0.74"
#:package JeremyAnsel.ColorQuant@3.0.74
#addin nuget:?package=JeremyAnsel.ColorQuant&version=3.0.74
#tool nuget:?package=JeremyAnsel.ColorQuant&version=3.0.74
JeremyAnsel.ColorQuant
JeremyAnsel.ColorQuant is a C# implementation of the Xiaolin Wu's Color Quantizer (v. 2). For a given 32-bit RGB or ARGB image, it will produce a 8-bit palletized image.
| Description | Value |
|---|---|
| License | The MIT License (MIT) |
| Documentation | http://jeremyansel.github.io/JeremyAnsel.ColorQuant |
| Code coverage | https://jeremyansel.github.io/JeremyAnsel.ColorQuant/coverage/ |
| Source code | https://github.com/JeremyAnsel/JeremyAnsel.ColorQuant |
| Nuget | https://www.nuget.org/packages/JeremyAnsel.ColorQuant |
| Build | https://ci.appveyor.com/project/JeremyAnsel/jeremyansel-colorquant/branch/master |
C Implementation of Xiaolin Wu's Color Quantizer (v. 2) (see Graphics Gems volume II, pages 126-133) : http://www.ece.mcmaster.ca/~xwu/cq.c.
Algorithm: Greedy orthogonal bipartition of RGB space for variance minimization aided by inclusion-exclusion tricks. For speed no nearest neighbor search is done. Slightly better performance can be expected by more sophisticated but more expensive versions.
Usage
For image with RGB data:
var quantizer = new WuColorQuantizer();
ColorQuantizerResult result = quantizer.Quantize(image, colorCount);
For image with ARGB data:
var quantizer = new WuAlphaColorQuantizer();
ColorQuantizerResult result = quantizer.Quantize(image, colorCount);
ColorQuantizerResult contains a palette and the result bytes.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- System.Memory (>= 4.6.3)
-
.NETStandard 2.0
- System.Memory (>= 4.6.3)
-
net6.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on JeremyAnsel.ColorQuant:
| Package | Downloads |
|---|---|
|
JeremyAnsel.Xwa.Opt
A .Net library to handle X-Wing Alliance's OPT files. |
|
|
JeremyAnsel.Xwa.Dat
A .Net library to handle X-Wing Alliance's DAT files. |
|
|
JeremyAnsel.Xwa.Cbm
A .Net library to handle X-Wing Alliance's CBM files. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.74 | 420 | 9/4/2025 |
| 3.0.73 | 1,011 | 9/22/2024 |
| 3.0.72 | 853 | 7/23/2024 |
| 3.0.71 | 194 | 7/23/2024 |
| 3.0.70 | 2,948 | 3/24/2023 |
| 3.0.69 | 1,604 | 4/27/2022 |
| 3.0.68 | 647 | 4/27/2022 |
| 3.0.67 | 645 | 4/26/2022 |
| 3.0.66 | 639 | 4/26/2022 |
| 2.0.65 | 3,695 | 7/2/2020 |
| 2.0.64 | 711 | 7/2/2020 |
| 2.0.63 | 2,324 | 10/7/2019 |
| 2.0.62 | 795 | 10/6/2019 |
| 2.0.61 | 803 | 10/6/2019 |
| 2.0.60 | 812 | 10/6/2019 |
| 2.0.59 | 771 | 10/6/2019 |
| 1.0.55 | 6,704 | 3/21/2016 |
| 1.0.54 | 3,247 | 10/11/2015 |
| 1.0.53 | 1,742 | 10/11/2015 |
| 1.0.52 | 3,255 | 9/27/2015 |
| 1.0.50 | 1,886 | 5/6/2015 |
| 1.0.49 | 1,747 | 5/6/2015 |
| 1.0.48 | 1,782 | 5/5/2015 |
| 1.0.47 | 1,808 | 5/5/2015 |
| 1.0.46 | 1,783 | 5/4/2015 |
| 1.0.45 | 1,742 | 5/4/2015 |
| 1.0.42 | 1,575 | 3/25/2015 |
| 1.0.41 | 1,579 | 3/25/2015 |
| 1.0.40 | 1,599 | 3/25/2015 |
| 1.0.39 | 1,624 | 3/25/2015 |
| 1.0.38 | 1,578 | 3/25/2015 |
| 1.0.37 | 1,570 | 3/25/2015 |
| 1.0.36 | 1,543 | 3/25/2015 |
| 1.0.35 | 2,041 | 12/27/2014 |
| 1.0.25 | 2,044 | 12/27/2014 |
| 1.0.19 | 1,989 | 12/26/2014 |
| 1.0.18 | 1,932 | 12/25/2014 |
| 1.0.17 | 2,014 | 12/24/2014 |
| 1.0.16 | 2,019 | 12/24/2014 |
| 1.0.15 | 1,825 | 12/24/2014 |
| 1.0.13 | 1,975 | 12/24/2014 |
| 1.0.11 | 2,100 | 12/22/2014 |
| 1.0.10 | 2,088 | 12/21/2014 |
| 1.0.9 | 2,082 | 12/21/2014 |