GPUImageView.h源码详解

2016-09-06  本文已影响39人  孙健会员
#import <UIKit/UIKit.h>
#import "GPUImageContext.h"

typedef enum {//枚举了3种填充方式
    kGPUImageFillModeStretch,                    
    kGPUImageFillModePreserveAspectRatio,          
    kGPUImageFillModePreserveAspectRatioAndFill    
} GPUImageFillModeType; 

@interface GPUImageView : UIView <GPUImageInput>
{
    GPUImageRotationMode inputRotation;//旋转方式
}
@property(readwrite, nonatomic) GPUImageFillModeType fillMode;//填充方式
@property(readonly, nonatomic) CGSize sizeInPixels;//纹理尺寸
@property(nonatomic) BOOL enabled;//标志位
- (void)setBackgroundColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent alpha:(GLfloat)alphaComponent;
- (void)setCurrentlyReceivingMonochromeInput:(BOOL)newValue;
@end
上一篇下一篇

猜你喜欢

热点阅读