Colors in images

Asked

Viewed 64 times

2

1 answer

0


This library can help: https://github.com/fleitz/ColorArt

With it you can extract information from the image, such as the background color.

Example of use:

UIImage *image = [UIImage imageNamed:@"test.jpg"];
SLColorArt *colorArt = [image colorArt];
primaryColorView.backgroundColor = colorArt.primaryColor;
backgroundColorView.backgroundColor = colorArt.backgroundColor;

Browser other questions tagged

You are not signed in. Login or sign up in order to post.