Skip to content

Color Thief for .NET. A fork from KSemenenko's repo but more faster

License

Notifications You must be signed in to change notification settings

CollapseLauncher/ColorThief

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

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.

Color Thief .NET

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

Targets:

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)

How to use

Get the dominant color from an image

var colorThief = new ColorThief();
colorThief.GetColor(sourceImage);

Build a color palette from an image

In this example, we build an 8 color palette.

var colorThief = new ColorThief();
colorThief.GetPalette(sourceImage, 8);

About

Color Thief for .NET. A fork from KSemenenko's repo but more faster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%