Top | ![]() |
![]() |
![]() |
![]() |
Key colors are RGB colors which represent an app, and they are derived from the app’s icon, or manually specified as an override.
Use gs_calculate_key_colors()
to calculate the key colors from an app’s icon.
GArray *
gs_calculate_key_colors (GdkPixbuf *pixbuf
);
Calculate the set of key colors present in pixbuf
. These are the colors
which stand out the most, and they are subjective. This function does not
guarantee to return perfect results, but should return workable results for
most icons.
pixbuf
will be scaled down to 32×32 pixels, so if it can be provided at
that resolution by the caller, this function will return faster.
Since: 40