[Lazarus] Color thief

Michael Van Canneyt michael at freepascal.org
Wed Jul 8 14:53:17 CEST 2015



On Wed, 8 Jul 2015, aradeonas wrote:

> Hi,
>  
> Today I saw Color thief and I was impressed.I like to have something like this in my application so I reviewed the code but I dont know how to implement this in FreePascal or couldn't find anything like
> this in Pascal that do as good as this.
>  
> Any one know about a library like this in Pascal or Delphi or probably write similar to this?

TFPCustomImage can do this for you. 
Load the image, set UsePalette:=True, and then the palette is available in the Palette property.

Michael.


More information about the Lazarus mailing list