Skip to content

anderaus/ColorThief

 
 

Repository files navigation

#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

Available at NuGet.

https://www.nuget.org/packages/ksemenenko.ColorThief/

###Platforms:

Platform Supported Version
Xamarin.iOS Partial iOS 6+
Xamarin.Android Partial API 10+
Windows Phone 8 Partial 8.0+
Windows Phone 8.1 Partial 8.1+
Windows Store Partial 8.1+
Windows 10 UWP Partial 10+
Xamarin.Mac Partial
Desktop .NET 4.5 Yes
Desktop .NET 4.6 Yes

##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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%