KSYGPUView.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #import <UIKit/UIKit.h>
  2. #import <GPUImage/GPUImage.h>
  3. /**
  4. UIView subclass to use as an endpoint for displaying GPUImage outputs
  5. */
  6. @interface KSYGPUView : UIView <GPUImageInput> {
  7. GPUImageRotationMode inputRotation;
  8. }
  9. /** 画面填充模式, 默认值为kGPUImageFillModePreserveAspectRatio
  10. */
  11. @property(readwrite, nonatomic) GPUImageFillModeType fillMode;
  12. /** This calculates the current display size, in pixels, taking into account Retina scaling factors
  13. */
  14. @property(readonly, nonatomic) CGSize sizeInPixels;
  15. /** GPUImageInput 启用
  16. */
  17. @property(nonatomic) BOOL enabled;
  18. /** Handling fill mode
  19. @param redComponent Red component for background color
  20. @param greenComponent Green component for background color
  21. @param blueComponent Blue component for background color
  22. @param alphaComponent Alpha component for background color
  23. */
  24. - (void)setBackgroundColorRed:(GLfloat)redComponent
  25. green:(GLfloat)greenComponent
  26. blue:(GLfloat)blueComponent
  27. alpha:(GLfloat)alphaComponent;
  28. /** 是否接收单通道输入
  29. */
  30. - (void)setCurrentlyReceivingMonochromeInput:(BOOL)newValue;
  31. @end