美文网首页
GPUImageView.h源码详解

GPUImageView.h源码详解

作者: 孙健会员 | 来源:发表于2016-09-06 00:55 被阅读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

相关文章

网友评论

      本文标题:GPUImageView.h源码详解

      本文链接:https://www.haomeiwen.com/subject/fpcdettx.html