UIImage-RTTint圖片亮度及顏色調(diào)整
UIImage-RTTint 是 UIImage 的分類,可以很方便給圖片進(jìn)行染色(Tinting)、增加亮度(lightening)以及降低亮度(darkening)。
使用方法:
#import "UIImage+RTTint.h" ... UIImage *image = [UIImage imageNamed:@"Logo.png"]; UIImage *tinted = [image rt_tintedImageWithColor:[UIColor redColor] level:0.5f];
評論
圖片
表情
