QSImageProcess 1.0.1

QSImageProcess 1.0.1

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布上次发布2017年8月

buaa0300 维护。



 
依赖
QSDispatchQueue>= 0
SDWebImage~> 4.1.0
 

  • 作者
  • 南华coder

一个高性能且方便的工具,用于处理本地或 Web 图像

安装

pod 'QSImageProcess'

or put all files in QSImageProcess directory into your project directly.

Then 

#import "QSImageProcess.h"
#import "UIImageView+QSImageProcess.h"

使用示例1

//load web image,default config,you don't need setup
[self.imageView qs_setImageWithURL:url
                placeholderImage:placeholderImage];

//load web image,you should make a custom config
QSImageProcessConfig *config = [QSImageProcessConfig configWithOutputSize:self.imageView.frame.size cornerRadius:cornerRadius corners:UIRectCornerAllCorners];
[self.imageView qs_setImageWithURL:url
                  placeholderImage:placeholderImage
                            config:configs];

使用示例2

//a config of circle output image  
QSImageProcessConfig *config = [QSImageProcessConfig configWithOutputSize:self.imageView.frame.size cornerRadius:cornerRadius corners:UIRectCornerAllCorners];

//load local image asynchronously
[[QSImageProcess sharedInstance]processImage:image config:config completed:^(UIImage *outputImage) {
    self.imageView1.image = outputImage;
}];

//load local image synchronously
self.imageView2.image = [[QSImageProcess sharedInstance]processImage:image config:config];