KSYGPUBrushStreamerKit.h 992 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // KSYGPUBrushStreamerKit.h
  3. // KSYStreamer
  4. //
  5. // Created by jiangdong on 28/12/16.
  6. // Copyright © 2016 ksyun. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <AVFoundation/AVFoundation.h>
  10. #import <libksygpulive/KSYGPUStreamerKit.h>
  11. @interface KSYGPUBrushStreamerKit : KSYGPUStreamerKit
  12. /**
  13. @abstract 绘制图片的位置和大小
  14. @discussion 位置和大小的单位为预览视图的百分比, 左上角为(0,0), 右下角为(1.0, 1.0)
  15. @discussion 如果宽为0, 则根据图像的宽高比, 和设置的高度比例, 计算得到宽度的比例
  16. @discussion 如果高为0, 方法同上
  17. */
  18. @property (nonatomic, readwrite) CGRect drawPicRect;
  19. /**
  20. @abstract 画笔图层
  21. */
  22. @property (nonatomic, readonly) NSInteger drawLayer;
  23. /**
  24. @abstract 绘制的图片
  25. @discussion 设置为nil为清除内容图片
  26. */
  27. @property (nonatomic, readwrite) KSYGPUViewCapture *drawPic;
  28. /**
  29. @abstract 去掉画笔图层
  30. */
  31. - (void)removeDrawLayer;
  32. @end