ImageEn, unit imageenproc

TImageEnProc.GetDominantColor

TImageEnProc.GetDominantColor


Declaration

function GetDominantColor(var Color: TRGB): Double;


Description

Returns the dominant (most common) color in the image.
Color will contain the dominant color, and the result will return the percentage of the image with that color.


Example

Percentage := ImageEnView.Proc.GetDominantColor(cl);
If Percentage = 100 then
 ShowMessage('The image is blank!');


See Also

- CreateRGB
- TRGB2TColor
- TColor2TRGB