This is a fork from the original repo by KSemenenko. This fork simplifies the target build for all .NET related platforms by just splitting the target into .NET Standard 2.0 and .NET Standard 2.1.
A code for grabbing the color palette from an image. Uses C# and .NET to make it happen.
This is a ported project of Color Thief
Many thanks for C# code UWP Version
Target | Supported Framework |
---|---|
.NET Standard 2.0 | .NET Framework (4.6.1 - 4.8) & .NET Core (2.0 - 7.0) |
.NET Standard 2.1 | .NET Core (2.0 - 7.0) |
var colorThief = new ColorThief();
colorThief.GetColor(sourceImage);
In this example, we build an 8 color palette.
var colorThief = new ColorThief();
colorThief.GetPalette(sourceImage, 8);