复合字幕。复合字幕是视频上叠加的组合型文字,每个复合字幕包含若干个子字幕。编辑视频时,可以添加并对字幕位置进行调整处理,还可以对字体,颜色属性进行修改。
更多...
|
| constructor () |
|
| getCaptionCount () |
| 获取字幕数量 更多...
|
|
| setText (captionIndex, text) |
| 设置文本 更多...
|
|
| getText (captionIndex) |
| 获取文本 更多...
|
|
| setTextColor (captionIndex, color) |
| 设置文本颜色 更多...
|
|
| getTextColor (captionIndex) |
| 获取文本颜色 更多...
|
|
| setFontFamily (captionIndex, family) |
| 设置字体家族 更多...
|
|
| getFontFamily (captionIndex) |
| 获取字体家族 更多...
|
|
| setCaptionTranslation (translation) |
| 设置字幕平移 更多...
|
|
| getCaptionTranslation () |
| 获取字幕平移 更多...
|
|
| translateCaption (translationOffset) |
| 平移字幕 更多...
|
|
| setAnchorPoint (anchor) |
| 设置锚点 更多...
|
|
| getAnchorPoint () |
| 获取锚点 更多...
|
|
| setScaleX (scale) |
| 设置X方向缩放 更多...
|
|
| getScaleX () |
| 获取X方向缩放 更多...
|
|
| setScaleY (scale) |
| 设置Y方向缩放 更多...
|
|
| getScaleY () |
| 获取Y方向缩放 更多...
|
|
| scaleCaption (scaleFactor, anchor) |
| 缩放字幕 更多...
|
|
| scaleCaption2 (scaleFactor) |
| 在中心缩放标题 更多...
|
|
| setRotationZ (angle) |
| 设置Z方向旋转 更多...
|
|
| getRotationZ () |
| 获取Z方向旋转 更多...
|
|
| rotateCaption (angle, anchor) |
| 旋转字幕 更多...
|
|
| rotateCaption2 (angle) |
| 旋转字幕 更多...
|
|
| getCaptionBoundingVertices (captionIndex, boudingType, motionParams) |
| 获取字幕边界顶点 更多...
|
|
| getCompoundBoundingVertices (boudingType, motionParams) |
| 获取组合边界顶点 更多...
|
|
| setZValue (value) |
| 设置Z值 更多...
|
|
| getZValue () |
| 获取Z值 更多...
|
|
| setOpacity (value) |
| 设置不透明度 更多...
|
|
| getOpacity () |
| 获取不透明度 更多...
|
|
| isFrameCaption (captionIndex) |
| 是否帧字幕 更多...
|
|
| getCaptionStylePackageId () |
| 获取字幕风格包ID 更多...
|
|
| constructor () |
| 特效实例构造器
|
|
| release () |
| 特效实例构造器 如果此特效实例后面不会再使用,必须要调用此方法释放,否则会有内部资源的泄漏
|
|
| setIntVal (fxParam, val) |
| 设置特效的整数参数值 更多...
|
|
| getIntVal (fxParam) |
| 获取特效的整数参数值 更多...
|
|
| setFloatVal (fxParam, val) |
| 设置特效的浮点数参数值 更多...
|
|
| getFloatVal (fxParam) |
| 获取特效的浮点数参数值 更多...
|
|
| setBooleanVal (fxParam, val) |
| 设置特效的布尔参数值 更多...
|
|
| getBooleanVal (fxParam) |
| 获取特效的布尔参数值 更多...
|
|
| setMenuVal (fxParam, val) |
| 设置特效的菜单参数值 更多...
|
|
| getMenuVal (fxParam) |
| 获取特效的菜单参数值 更多...
|
|
| setStringVal (fxParam, val) |
| 设置特效的字符串参数值 更多...
|
|
| getStringVal (fxParam) |
| 获取特效的字符串参数值 更多...
|
|
| setColorVal (fxParam, val) |
| 设置特效的颜色参数值 更多...
|
|
| getColorVal (fxParam) |
| 获取特效的颜色参数值 更多...
|
|
| setFilterIntensity (intensity) |
| 设置滤镜强度 更多...
|
|
| getFilterIntensity () |
| 获取滤镜强度 更多...
|
|
| getARSceneManipulate () |
| 获取ARScene操作 更多...
|
|
| getInPoint () |
| 获取起始点 更多...
|
|
| getOutPoint () |
| 获取结束点 更多...
|
|
| changeInPoint (newInPoint) |
| 改变起始点 更多...
|
|
| changeOutPoint (newOutPoint) |
| 改变起始点 更多...
|
|
复合字幕。复合字幕是视频上叠加的组合型文字,每个复合字幕包含若干个子字幕。编辑视频时,可以添加并对字幕位置进行调整处理,还可以对字体,颜色属性进行修改。
- 参见
- NveEffectInstance
◆ constructor()
NveCompoundCaption::constructor |
( |
| ) |
|
|
inline |
◆ getAnchorPoint()
NveCompoundCaption::getAnchorPoint |
( |
| ) |
|
|
inline |
◆ getCaptionBoundingVertices()
NveCompoundCaption::getCaptionBoundingVertices |
( |
|
captionIndex, |
|
|
|
boudingType, |
|
|
|
motionParams |
|
) |
| |
|
inline |
获取字幕边界顶点
- 参数
-
{Number} | captionIndex 字幕索引 |
{Number} | boundingType 边界类型 |
{NveMotionParameters} | motionParams 运动参数 |
- 返回
- {NveVectorVal} 返回NSArray对象,对象类型为NSValue,实际数据类型为CGPoint,分别对应原始边界的左上、左下、右下、右上顶点。
- 参见
- NveMotionParameters
-
NveVectorVal
◆ getCaptionCount()
NveCompoundCaption::getCaptionCount |
( |
| ) |
|
|
inline |
获取字幕数量
- 返回
- {Number} 返回字幕的数量
◆ getCaptionStylePackageId()
NveCompoundCaption::getCaptionStylePackageId |
( |
| ) |
|
|
inline |
获取字幕风格包ID
- 返回
- {String} 返回获取到的字幕样式资源包ID。
◆ getCaptionTranslation()
NveCompoundCaption::getCaptionTranslation |
( |
| ) |
|
|
inline |
◆ getCompoundBoundingVertices()
NveCompoundCaption::getCompoundBoundingVertices |
( |
|
boudingType, |
|
|
|
motionParams |
|
) |
| |
|
inline |
获取组合边界顶点
- 参数
-
{Number} | boudingType 边界类型 |
{NveMotionParameters} | motionParams 运动参数 |
- 返回
- {NveVectorVal} 返回NSArray对象,对象类型为NSValue,实际数据类型为CGPoint,分别对应原始边界的左上、左下、右下、右上顶点。
- 参见
- NveVectorVal
◆ getFontFamily()
NveCompoundCaption::getFontFamily |
( |
|
captionIndex | ) |
|
|
inline |
获取字体家族
- 参数
-
{Number} | captionIndex 字幕索引 |
- 返回
- {String}
◆ getOpacity()
NveCompoundCaption::getOpacity |
( |
| ) |
|
|
inline |
获取不透明度
- 返回
- {Number} 返回标题不透明度。
◆ getRotationZ()
NveCompoundCaption::getRotationZ |
( |
| ) |
|
|
inline |
获取Z方向旋转
- 返回
- {Number} 返回字幕旋转角度。
◆ getScaleX()
NveCompoundCaption::getScaleX |
( |
| ) |
|
|
inline |
获取X方向缩放
- 返回
- {Number} 返回字幕水平缩放系数。
◆ getScaleY()
NveCompoundCaption::getScaleY |
( |
| ) |
|
|
inline |
获取Y方向缩放
- 返回
- {Number} 返回字幕垂直比例系数。
◆ getText()
NveCompoundCaption::getText |
( |
|
captionIndex | ) |
|
|
inline |
获取文本
- 参数
-
{Number} | captionIndex 字幕索引 |
- 返回
- {String} 返回字幕文本。
◆ getTextColor()
NveCompoundCaption::getTextColor |
( |
|
captionIndex | ) |
|
|
inline |
◆ getZValue()
NveCompoundCaption::getZValue |
( |
| ) |
|
|
inline |
◆ isFrameCaption()
NveCompoundCaption::isFrameCaption |
( |
|
captionIndex | ) |
|
|
inline |
是否帧字幕
- 参数
-
{Number} | captionIndex 字幕索引 |
- 返回
- {Boolean} 返回值为 true 表示边框字幕
◆ rotateCaption()
NveCompoundCaption::rotateCaption |
( |
|
angle, |
|
|
|
anchor |
|
) |
| |
|
inline |
旋转字幕
- 参数
-
{Number} | angle 角度 |
{NvePointF} | anchor 锚点 |
- 返回
- {void}
◆ rotateCaption2()
NveCompoundCaption::rotateCaption2 |
( |
|
angle | ) |
|
|
inline |
◆ scaleCaption()
NveCompoundCaption::scaleCaption |
( |
|
scaleFactor, |
|
|
|
anchor |
|
) |
| |
|
inline |
缩放字幕
- 参数
-
{Number} | scaleFactor 缩放系数 |
{NvePointF} | anchor 锚点 |
- 返回
- {void}
◆ scaleCaption2()
NveCompoundCaption::scaleCaption2 |
( |
|
scaleFactor | ) |
|
|
inline |
◆ setAnchorPoint()
NveCompoundCaption::setAnchorPoint |
( |
|
anchor | ) |
|
|
inline |
◆ setCaptionTranslation()
NveCompoundCaption::setCaptionTranslation |
( |
|
translation | ) |
|
|
inline |
设置字幕平移
- 参数
-
{NvePointF} | translation 转场 |
- 返回
- {void}
◆ setFontFamily()
NveCompoundCaption::setFontFamily |
( |
|
captionIndex, |
|
|
|
family |
|
) |
| |
|
inline |
设置字体家族
- 参数
-
{Number} | captionIndex 字幕索引 |
{String} | family 字体家族 |
- 返回
- {void}
◆ setOpacity()
NveCompoundCaption::setOpacity |
( |
|
value | ) |
|
|
inline |
◆ setRotationZ()
NveCompoundCaption::setRotationZ |
( |
|
angle | ) |
|
|
inline |
◆ setScaleX()
NveCompoundCaption::setScaleX |
( |
|
scale | ) |
|
|
inline |
◆ setScaleY()
NveCompoundCaption::setScaleY |
( |
|
scale | ) |
|
|
inline |
◆ setText()
NveCompoundCaption::setText |
( |
|
captionIndex, |
|
|
|
text |
|
) |
| |
|
inline |
设置文本
- 参数
-
{Number} | captionIndex 字幕索引 |
{String} | text 文本 |
- 返回
- {void} 文字内容
◆ setTextColor()
NveCompoundCaption::setTextColor |
( |
|
captionIndex, |
|
|
|
color |
|
) |
| |
|
inline |
设置文本颜色
- 参数
-
{Number} | captionIndex 字幕索引 |
{NveColor} | color 颜色 |
- 返回
- {void}
◆ setZValue()
NveCompoundCaption::setZValue |
( |
|
value | ) |
|
|
inline |
◆ translateCaption()
NveCompoundCaption::translateCaption |
( |
|
translationOffset | ) |
|
|
inline |
平移字幕
- 参数
-
{NvePointF} | translationOffset 转场偏移 |
- 返回
- {void}
该类的文档由以下文件生成: