CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Sep 2017 |
Maintained by Job-Yang.
Useful image tools for iOS
UIColor *whiteColor = [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:1.f];
// extract bright colors and avoid results if close to white color
self.colorArr = [self.imageView.image extractColorsWithMode:JYExtractModeOnlyDistinctColors avoidColor:whiteColor];
UIColor *color = [self.imageView.image pixelColorAtLocation:point formImageRect:self.imageView.frame];
BOOL isEqual = [self.imageViewOne.image isEqualToImage:self.imageViewTwo.image];
if (isEqual) {
//...Do something..
}
else {
//...Do something..
}
JYImageTool
subdirectory.JYImageTool.h
.JYImageTool is released under the MIT license. See LICENSE file for details.
实用的iOS图片工具
UIColor *whiteColor = [UIColor colorWithRed:1.f green:1.f blue:1.f alpha:1.f];
// 提取较附近更亮的主色,并忽略太接近白色的提取结果
self.colorArr = [self.imageView.image extractColorsWithMode:JYExtractModeOnlyDistinctColors avoidColor:whiteColor];
UIColor *color = [self.imageView.image pixelColorAtLocation:point formImageRect:self.imageView.frame];
BOOL isEqual = [self.imageViewOne.image isEqualToImage:self.imageViewTwo.image];
if (isEqual) {
//...Do something..
}
else {
//...Do something..
}
JYImageTool.h
。JYImageTool 使用 MIT 许可证,详情见 LICENSE 文件。