美摄Web端SDK  3.12.1
Public 成员函数 | 所有成员列表
NveCompoundCaption类 参考

复合字幕。复合字幕是视频上叠加的组合型文字,每个复合字幕包含若干个子字幕。编辑视频时,可以添加并对字幕位置进行调整处理,还可以对字体,颜色属性进行修改。 更多...

类 NveCompoundCaption 继承关系图:
NveEffectInstance

Public 成员函数

 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 更多...
 
- Public 成员函数 继承自 NveEffectInstance
 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

@constructor

◆ getAnchorPoint()

NveCompoundCaption::getAnchorPoint ( )
inline

获取锚点

返回
{NvePointF} 返回字幕锚。

◆ 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

获取字幕平移

返回
{NvePointF} 返回 NvePointF 对象,指示获得的字幕平移量。

◆ 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

获取文本颜色

参数
{Number}captionIndex 字幕索引
返回
{NveColor} 返回 NveColor 对象,它是文本颜色

◆ getZValue()

NveCompoundCaption::getZValue ( )
inline

获取Z值

返回
{Number}

◆ 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

旋转字幕

参数
{Number}angle 角度
返回
{void}

◆ scaleCaption()

NveCompoundCaption::scaleCaption (   scaleFactor,
  anchor 
)
inline

缩放字幕

参数
{Number}scaleFactor 缩放系数
{NvePointF}anchor 锚点
返回
{void}

◆ scaleCaption2()

NveCompoundCaption::scaleCaption2 (   scaleFactor)
inline

在中心缩放标题

参数
{Number}scaleFactor 比例系数
返回
{void}

◆ setAnchorPoint()

NveCompoundCaption::setAnchorPoint (   anchor)
inline

设置锚点

参数
{NvePointF}anchor 锚点
返回
{void}

◆ setCaptionTranslation()

NveCompoundCaption::setCaptionTranslation (   translation)
inline

设置字幕平移

参数
{NvePointF}translation 转场
返回
{void}

◆ setFontFamily()

NveCompoundCaption::setFontFamily (   captionIndex,
  family 
)
inline

设置字体家族

参数
{Number}captionIndex 字幕索引
{String}family 字体家族
返回
{void}

◆ setOpacity()

NveCompoundCaption::setOpacity (   value)
inline

设置不透明度

参数
{Number}value 不透明度大小
返回
{void}

◆ setRotationZ()

NveCompoundCaption::setRotationZ (   angle)
inline

设置Z方向旋转

参数
{Number}angle 角度
返回
{void}

◆ setScaleX()

NveCompoundCaption::setScaleX (   scale)
inline

设置X方向缩放

参数
{Number}scale 缩放
返回
{void}

◆ setScaleY()

NveCompoundCaption::setScaleY (   scale)
inline

设置Y方向缩放

参数
{Number}scale 缩放
返回
{void}

◆ 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

设置Z值

参数
{Number}value Z值大小
返回
{void}

◆ translateCaption()

NveCompoundCaption::translateCaption (   translationOffset)
inline

平移字幕

参数
{NvePointF}translationOffset 转场偏移
返回
{void}

该类的文档由以下文件生成: