#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
网友评论