在一個給定的UIImage快速查找認為最相關的顏色:SOZOChromoplast

jopen 10年前發布 | 13K 次閱讀 iOS開發 移動開發 SOZOChromoplast

功能類似于iTunes的相冊視圖,SOZOChromoplast能夠在一個給定的UIImage快速查找認為最相關的顏色。每次給你完美的配色方案。

在一個給定的UIImage快速查找認為最相關的顏色:SOZOChromoplast

Installing via Cocoapods

Add the following line to your Podfile and run pod install

pod 'SOZOChromoplast'

Usage

Simple!

// Get an image
UIImage *someImage = [UIImage imageNamed:@"someImage.png"];

// Instantiate your chromoplast
SOZOChromoplast *chromoplast = [[SOZOChromoplast alloc] initWithImage:someImage];

// Use your colors!
self.view.backgroundColor = chromoplast.dominantColor;
self.label1.textColor = chromoplast.firstHighlight;
self.label2.textColor = chromoplast.secondHighlight;

項目主頁:http://www.baiduhome.net/lib/view/home/1416494702539

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!