Baker76.ColorQuant
1.0.27
dotnet add package Baker76.ColorQuant --version 1.0.27
NuGet\Install-Package Baker76.ColorQuant -Version 1.0.27
<PackageReference Include="Baker76.ColorQuant" Version="1.0.27" />
<PackageVersion Include="Baker76.ColorQuant" Version="1.0.27" />
<PackageReference Include="Baker76.ColorQuant" />
paket add Baker76.ColorQuant --version 1.0.27
#r "nuget: Baker76.ColorQuant, 1.0.27"
#addin nuget:?package=Baker76.ColorQuant&version=1.0.27
#tool nuget:?package=Baker76.ColorQuant&version=1.0.27
Baker76.ColorQuant
Baker76.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/Baker76.ColorQuant |
Code coverage | https://jeremyansel.github.io/Baker76.ColorQuant/coverage/ |
Source code | https://github.com/JeremyAnsel/Baker76.ColorQuant |
Nuget | https://www.nuget.org/packages/Baker76.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 by
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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. |
-
net8.0
- Baker76.Imaging (>= 1.0.27)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Baker76.ColorQuant:
Package | Downloads |
---|---|
Baker76.Atlas
Tools for generating and parsing Crunch texture atlas format. |
GitHub repositories
This package is not used by any popular GitHub repositories.