|
美摄SDK For iOS
3.7.2
|
#import <NvsCompoundCaption.h>
属性 | |
| NSString * | captionStylePackageId |
| 字幕样式包裹ID 更多... | |
| NSInteger | captionCount |
| 获取该复合字幕中子字幕的数量 更多... | |
属性 继承自 NvsFx | |
| NvsFxDescription * | description |
| 特效描述 更多... | |
| - (int64_t) findKeyframeTime: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
| flags: | (int) | flags | |
获取指定时间点附近的关键帧
| fxParam | 特效的数据参数 |
| time | 时间点 (单位为微秒). |
| flags | 查找标志位,请参见KEY_FRAME_FIND_MODE. |
实现了 NvsFx.
| - (CGPoint) getAnchorPoint |
获取字幕锚点
| - (NvsColor) getBackgroundColor: | (int) | captionIndex |
获取字幕文本的当前背景颜色值
| captionIndex | 想要设置文字的字幕索引号 |
| - (BOOL) getBold: | (int) | captionIndex |
获取字幕字体加粗状态
| captionIndex | 想要设置文字的字幕索引号 |
| - (NSArray *) getCaptionBoundingVertices: | (NSInteger) | captionIndex | |
| boundingType: | (NvsBoundingType) | boundingType | |
获取字幕原始边框变换后的顶点位置
| captionIndex | 要获取顶点位置的字幕索引号 |
| boundingType | 边框类型。请参见边框类型 |
| - (CGPoint) getCaptionTranslation |
获取字幕的平移量
| - (NSArray *) getCompoundBoundingVertices: | (NvsBoundingType) | boundingType |
获取复合字幕原始边框变换后的顶点位置
| boundingType | 边框类型。请参见边框类型 |
| - (NvsControlPointPair*) getControlPoint: | (NSString *) | fxParam |
返回关键帧控制点对
| fxParam | 字幕参数的类型 |
| - (BOOL) getDrawOutline: | (int) | captionIndex |
获取字幕描边状态
| captionIndex | 想要设置文字的字幕索引号 |
| - (NSString *) getFontFamily: | (NSInteger) | captionIndex |
获取字幕字体的名字
| captionIndex | 想要获取字体的字幕索引号 |
| - (BOOL) getItalic: | (int) | captionIndex |
获取字幕斜体状态
| captionIndex | 字幕索引号 |
| - (float) getOpacity |
| - (NvsColor) getOutlineColor: | (int) | captionIndex |
获取当前字幕描边的颜色值
| captionIndex | 想要设置文字的字幕索引号 |
| - (float) getOutlineWidth: | (int) | captionIndex |
获取当前字幕描边的宽度
| captionIndex | 想要设置文字的字幕索引号 |
| - (float) getRotationZ |
获取字幕旋转角度
| - (float) getScaleX |
| - (float) getScaleY |
| - (NSString *) getText: | (NSInteger) | captionIndex |
获取字幕文本
| captionIndex | 想要获取文字的字幕索引号 |
| - (NvsColor) getTextColor: | (NSInteger) | captionIndex |
获取字幕的颜色值
| captionIndex | 想要获取文本颜色的字幕索引号 |
| - (int) getWeight: | (int) | captionIndex |
获取字幕权重值
| captionIndex | 想要设置文字的字幕索引号 |
| - (float) getZValue |
获取字幕Z值
| - (bool) hasKeyframeList: | (NSString *) | fxParam |
| - (bool) removeAllKeyframe: | (NSString *) | fxParam |
| - (bool) removeKeyframeAtTime: | (NSString *) | fxParam | |
| time: | (int64_t) | time | |
| - (void) rotateCaption: | (float) | angle | |
| anchor: | (CGPoint) | anchor | |
旋转字幕
| angle | 字幕旋转的角度 |
| anchor | 字幕旋转的锚点 |
| - (void) rotateCaptionAroundCenter: | (float) | angle | |
| boundingType: | (NvsBoundingType) | boundingType | |
绕字幕边框中心旋转
| angle | 字幕旋转的角度 |
| boundingType | 用于计算中心点的边框类型。请参见边框类型 |
| - (void) scaleCaption: | (float) | scaleFactor | |
| anchor: | (CGPoint) | anchor | |
缩放字幕
| scaleFactor | 字幕缩放的因子 |
| anchor | 字幕缩放的锚点 |
| - (void) setAnchorPoint: | (CGPoint) | anchor |
| - (void) setBackgroundColor: | (NvsColor) | backgroundColor | |
| captionIndex: | (int) | captionIndex | |
设置字幕文本的背景颜色
| backgroundColor | 文本背景颜色值 |
| captionIndex | 想要设置文字的字幕索引号 |
| - (void) setBold: | (BOOL) | bold | |
| captionIndex: | (int) | captionIndex | |
| - (void) setCaptionTranslation: | (CGPoint) | translation |
| - (bool) setControlPoint: | (NSString *) | fxParam | |
| controlPointPair: | (NvsControlPointPair *) | controlPointPair | |
设置字幕的关键帧控制点对
| fxParam | 字幕参数的类型 |
| controlPointPair | 控制点对 |
| - (void) setCurrentKeyFrameTime: | (int64_t) | time |
设置复合字幕的关键帧时间
| - (void) setDrawOutline: | (BOOL) | drawOutline | |
| captionIndex: | (int) | captionIndex | |
设置字幕描边
| drawOutline | 是否对字幕描边。true表示对字幕进行描边,false则不描边 |
| captionIndex | 想要设置文字的字幕索引号 |
| - (void) setFontFamily: | (NSInteger) | captionIndex | |
| family: | (NSString *) | family | |
设置字幕字体
| captionIndex | 想要设置字体的字幕索引号 |
| family | 字体名称,若设为空字符串,则设为默认字体 |
| - (void) setItalic: | (BOOL) | italic | |
| captionIndex: | (int) | captionIndex | |
设置字幕斜体
| italic用于设置字幕是否应用斜体 | |
| captionIndex | 想要设置的字幕索引号 |
| - (void) setOpacity: | (float) | opacity |
| - (void) setOutlineColor: | (NvsColor) | outlineColor | |
| captionIndex: | (int) | captionIndex | |
设置字幕描边的颜色
| captionIndex | 想要设置文字的字幕索引号 |
| outlineColor | 字幕描边颜色值 |
| - (void) setOutlineWidth: | (float) | outlineWidth | |
| captionIndex: | (int) | captionIndex | |
设置字幕描边的宽度
| captionIndex | 想要设置文字的字幕索引号 |
| outlineWidth | 字幕描边的宽度 |
| - (void) setRotationZ: | (float) | angle |
| - (void) setScaleX: | (float) | scale |
| - (void) setScaleY: | (float) | scale |
| - (void) setText: | (NSInteger) | captionIndex | |
| text: | (NSString *) | text | |
设置字幕文本
| captionIndex | 想要设置文字的字幕索引号 |
| text | 字幕文本 |
| - (void) setTextColor: | (NSInteger) | captionIndex | |
| textColor: | (const NvsColor *) | textColor | |
设置字幕文本颜色
| captionIndex | 想要设置文本颜色的字幕索引号 |
| textColor | 文本颜色值 |
| - (void) setWeight: | (int) | weight | |
| captionIndex: | (int) | captionIndex | |
| - (void) setZValue: | (float) | value |
设置字幕Z值
| value | z值 |
| - (void) translateCaption: | (CGPoint) | translationOffset |
|
readatomicassign |
获取该复合字幕中子字幕的数量
|
readatomicassign |
字幕样式包裹ID
1.8.18