Skip to content

NobelLiu/NLImageColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NLImageColor

Pick the color in an image via Swift. ![](https://raw.githubusercontent.com/NobelLiu/NLImageColor/master/Screen Shot.png)

Description

Resize image to 40 * 40, use CIAreaAverage to get average color, count all or just 5px border of the resize image and get the most.

Usage

Drag NLImageColor.swift into your project. Use

UIImage().averageColor()   
UIImage().mostColor()   
UIImage().edgeColor()   

to get the function of the corresponding.

About

Pick the color in an image via Swift.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages