/JFGetImageColor

照片取色

Primary LanguageObjective-C

JFGetImageColor

照片取色Demo

1.使用接口:

  • (UIColor*)getPixelColorAtLocation:(CGPoint)point inImage:(UIImage *)image formImageRect:(CGRect)Rect;

2.使用例子:

//取色
JFGetImageColor *comparison = [[JFGetImageColor alloc]init];
self.view.backgroundColor = [comparison getPixelColorAtLocation:point inImage:self.imageView.image formImageRect:self.imageView.frame];

3.效果:

照片取色Demo效果图