Skip to content

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

License

Notifications You must be signed in to change notification settings

CollapseLauncher/ColorThief

This branch is 42 commits ahead of KSemenenko/ColorThief:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

0d73e7c · Aug 18, 2024
Aug 18, 2024
Jun 13, 2016
Dec 29, 2015
Sep 11, 2022
Sep 26, 2016

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 faster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%