KSYGPUPicture.h
821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// KSYGPUPicture.h
// KSYStreamer
//
// Created by ksyun on 16/6/1.
// Copyright © 2016年 yiqian. All rights reserved.
//
#import <GPUImage/GPUImage.h>
/** 图片读入类
1. 继承自GPUImagePicture
2. 增加通过指定图片名称载入图片的功能
3. 图片搜索顺序如下 mainBundle -> mainBundle中的 KSYGPUResource.bundle -> Documents/GPUResource
顺序在以上路径中查找是否有指定名称的图片
*/
@interface KSYGPUPicture: GPUImagePicture
/**
通过指定图片名称载入图片
@param name 图片的名称
@return 载入图片后的实例
*/
- (id)initWithImageName:(NSString *)name;
/**
指定载入图片后输出的尺寸
@param img 图片
@param size 尺寸
@return 构造的实例
*/
- (id)initWithImage:(UIImage*)img andOutputSize:(CGSize)size;
@end