Latest 0.0.1
Homepage https://github.com/BlueTopsky/UIImage-SKYExtension
License MIT
Platforms ios 8.0
Authors

UIImage-SKYExtension

UIImage分类,包含根据颜色生成图片等功能

安装:pod ‘UIImage+SKYExtension’

//根据颜色生成纯色图片
+ (UIImage *)imageWithColor:(UIColor *)color;

//UIView转化为UIImage
+ (UIImage *)imageFromView:(UIView *)view;

//将两个图片生成一张图片
+ (UIImage *)mergeImage:(UIImage *)firstImage withImage:(UIImage *)secondImage;

//改变图片的颜色
- (UIImage *)imageWithTintColor:(UIColor *)tintColor;

//取图片某一像素的颜色
- (UIColor *)colorAtPixel:(CGPoint)point;

//获得灰度图
- (UIImage *)convertToGrayImage;

//纠正图片的方向
- (UIImage *)fixOrientation;

//按给定的方向旋转图片
- (UIImage *)rotate:(UIImageOrientation)orient;

//垂直翻转
- (UIImage *)flipVertical;

//水平翻转
- (UIImage *)flipHorizontal;

//将图片旋转degrees角度
- (UIImage *)imageRotatedByDegrees:(CGFloat)degrees;

//将图片旋转radians弧度
- (UIImage *)imageRotatedByRadians:(CGFloat)radians;

//用一个Gif生成UIImage,传入一个GIFData
+ (UIImage *)animatedImageWithAnimatedGIFData:(NSData *)theData;

//用一个Gif生成UIImage,传入一个GIF路径
+ (UIImage *)animatedImageWithAnimatedGIFURL:(NSURL *)theURL;

Latest podspec

{
    "name": "UIImage+SKYExtension",
    "version": "0.0.1",
    "summary": "u53efu901au8fc7u989cu8272u751fu6210u56feu7247u4ee5u53cau56feu7247u7684u4e00u4e9bu76f8u5173u5904u7406",
    "description": "UIImageu7684u5206u7c7buff0cu53efu901au8fc7u989cu8272u751fu6210u56feu7247u4ee5u53cau56feu7247u7684u4e00u4e9bu76f8u5173u5904u7406",
    "homepage": "https://github.com/BlueTopsky/UIImage-SKYExtension",
    "license": "MIT",
    "authors": {
        "luoyesuifeng": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/BlueTopsky/UIImage-SKYExtension.git",
        "tag": "0.0.1"
    },
    "source_files": "UIImageCategory/*.{h,m}"
}

Pin It on Pinterest

Share This