TuSDKPFEditCuterOptions Class Reference

Inherits from TuSDKCPImageResultOptions
Declared in TuSDKPFEditCuterOptions.h

Overview

图片编辑裁切旋转控制器配置选项

  viewClazz

视图类 (默认:TuSDKPFEditCuterView, 需要继承 TuSDKPFEditCuterView)

@property (nonatomic, strong) Class viewClazz

Declared In

TuSDKPFEditCuterOptions.h

  enableTrun

是否开启图片旋转 (默认: false)

@property (nonatomic) BOOL enableTrun

Declared In

TuSDKPFEditCuterOptions.h

  enableMirror

是否开启图片镜像(默认: false)

@property (nonatomic) BOOL enableMirror

Declared In

TuSDKPFEditCuterOptions.h

  ratioType

视图显示比例类型 (默认:lsqRatioDefault, 如果设置cameraViewRatio > 0, 将忽略ratioType)

@property (nonatomic) lsqRatioType ratioType

Declared In

TuSDKPFEditCuterOptions.h

  ratioTypeList

视图显示比例类型列表 ( 优先级 ratioTypeList > ratioType, 默认:lsqTuSDKRatioDefaultTypes)

@property (nonatomic) NSArray<NSNumber*> *ratioTypeList

Discussion

设置 NSNumber 型数组来控制显示的按钮顺序, 例如: @[@(lsqRatioOrgin), @(lsqRatio_1_1), @(lsqRatio_2_3), @(lsqRatio_3_4)]

Declared In

TuSDKPFEditCuterOptions.h

  onlyReturnCuter

是否仅返回裁切参数,不返回处理图片

@property (nonatomic) BOOL onlyReturnCuter

Declared In

TuSDKPFEditCuterOptions.h

– viewController

创建图片编辑裁切旋转控制器对象

- (TuSDKPFEditCuterController *)viewController

Return Value

controller 图片编辑裁切旋转控制器对象

Declared In

TuSDKPFEditCuterOptions.h