AliyunEffectCaption
@interface AliyunEffectCaption : AliyunEffectPasterBase
既有动图序列帧又有文字的字幕model类
-
文字内容
Declaration
Objective-C
@property (nonatomic, copy) NSString *text;
-
用户配置的字体名称
默认值从动图配置文件解析而来
Declaration
Objective-C
@property (nonatomic, copy) NSString *captionFontName;
-
用户配置的字体id
默认值从动图配置文件解析而来
Declaration
Objective-C
@property (nonatomic) NSInteger captionFontId;
-
文字开始出现的时间
参考坐标系为动图本身 例如:textRelativeToBeginTime=2,代表动图第一帧开始出现后的第2秒文字才开始出现
Declaration
Objective-C
@property (nonatomic) CGFloat textRelativeToBeginTime;
-
文字消失的时间
参考坐标系为动图本身
Declaration
Objective-C
@property (nonatomic) CGFloat textRelativeToEndTime;
-
文字的位置大小
参考坐标系为动图本身
Declaration
Objective-C
@property (nonatomic) CGRect textFrame;
-
文字的中心点位置
参考坐标系为动图本身
Declaration
Objective-C
@property (nonatomic) CGPoint textCenter;
-
文字的大小
参考坐标系为动图本身
Declaration
Objective-C
@property (nonatomic) CGSize textSize;
-
关键帧图片
Declaration
Objective-C
@property (nonatomic, strong) UIImage *kernelImage;
-
文字是否描边
Declaration
Objective-C
@property (nonatomic) BOOL textStroke;
-
文字颜色
Declaration
Objective-C
@property(nonatomic, strong) UIColor *textColor
-
文字描边颜色
Declaration
Objective-C
@property(nonatomic, strong) UIColor *textStrokeColor
-
文字背景颜色
Declaration
Objective-C
@property(nonatomic, strong) UIColor *textLabelColor
-
字体名称
Declaration
Objective-C
@property (nonatomic, copy) NSString *fontName;
-
字幕动图的场景集合
字幕动图也可以分为进场、场中和出场
Declaration
Objective-C
@property (nonatomic, copy) NSArray<AliyunEffectPasterTimeItem *> *timeItems;
-
动画帧集合
Declaration
Objective-C
@property (nonatomic, copy) NSArray<AliyunEffectPasterFrameItem *> *frameItems;
-
字幕动图原始时长
Declaration
Objective-C
@property (nonatomic) CGFloat originDuration;
-
字幕动图中的文字原始持续时长
Declaration
Objective-C
@property (nonatomic) CGFloat originTextDuration;
-
字幕动图中的文字原始的开始时间
参考坐标系为动图本身
Declaration
Objective-C
@property (nonatomic) CGFloat originTextBeginTime;
-
Deprecated
deprecated
Undocumented
Declaration
Objective-C
- (id)initWithRestore:(NSDictionary *)dict __deprecated_msg("deprecated");