MeiCam SDK For Web  3.12.1
Public Member Functions | List of all members
NveCaption Class Reference

Captions are custom text superimposed on the video. You can add and adjust the caption position. After adding caption, you can also set styles, including font size, color, shadow, stroke, etc. More...

Inheritance diagram for NveCaption:
NveEffectInstance

Public Member Functions

 constructor ()
 constructor
 
 getCaptionStylePackageId ()
 Gets the caption style package ID. More...
 
 getModularCaptionContextPackageId ()
 Gets the modular caption context style package ID. More...
 
 getModularCaptionRendererPackageId ()
 Gets the modular caption context style package ID. More...
 
 getModularCaptionAnimationPackageId ()
 Gets the modular caption animation style package ID. More...
 
 getModularCaptionInAnimationPackageId ()
 Gets the modular caption in-animation style package ID. More...
 
 getModularCaptionOutAnimationPackageId ()
 Gets the modular caption out-animation style package ID. More...
 
 applyCaptionStyle (captionStylePackageId, isUseDefaultAssetParam)
 Apply caption style. More...
 
 applyModularCaptionContext (captionContextPackageId)
 Applys modular caption context style. More...
 
 applyModularCaptionRenderer (captionRendererPackageId)
 Applys modular caption render style. More...
 
 applyModularCaptionAnimation (captionAnimationPackageId)
 Applys modular caption loop-animation style. More...
 
 applyModularCaptionInAnimation (captionInAnimationPackageId)
 Applys modular caption in-animation style. Notes:please set loop-Animation to null before you set in-animation, otherwise it will NOT works. More...
 
 applyModularCaptionOutAnimation (captionOutAnimationPackageId)
 Applys modular caption out-animation style.Notes:please set loop-Animation to null before you set out-animation, otherwise it will NOT works. More...
 
 setModularCaptionAnimationPeriod (periodInMS)
 Set modular caption Animation Period. More...
 
 getModularCaptionAnimationPeriod ()
 Get modular caption Animation Period. More...
 
 setModularCaptionInAnimationDuration (inAnimationDurationInMS)
 Set modular caption in-animation duration. More...
 
 getModularCaptionInAnimationDuration ()
 Get modular caption in-animation duration. More...
 
 setModularCaptionOutAnimationDuration (outAnimationDurationInMS)
 Set modular caption out-animation duration. More...
 
 getModularCaptionOutAnimationDuration ()
 Get modular caption out-animation duration. More...
 
 setText (text)
 Sets caption text. More...
 
 getText ()
 Gets caption text. More...
 
 setTextAlignment (textAlign)
 Set caption horizontal alignment style. More...
 
 getTextAlignment ()
 Get caption horizontal alignment style. More...
 
 setTextVerticalAlignment (textAlign)
 Set caption horizontal alignment style. More...
 
 getTextVerticalAlignment ()
 Gets caption vertical alignment style, valid for frame-caption only. More...
 
 setVerticalLayout (verticalLayout)
 Sets whether to layout text vertically. More...
 
 getVerticalLayout ()
 Gets whether to layout text vertically. More...
 
 setBold (bold)
 Set caption font bold. More...
 
 getBold ()
 Get the caption font bold state. More...
 
 setItalic (italic)
 Set caption font italic. More...
 
 getItalic ()
 Get caption font italic. More...
 
 setUnderline (underline)
 Set caption underline. More...
 
 getUnderline ()
 Get caption underline. More...
 
 setLetterSpacingType (letterSpacingType)
 Set caption word spacing type. More...
 
 getLetterSpacingType ()
 Get caption word spacing type. More...
 
 setLetterSpacing (letterSpacing)
 Set caption letter spacing. More...
 
 getLetterSpacing ()
 Get caption letter spacing. More...
 
 setLineSpacing (lineSpacing)
 Set line spacing. More...
 
 getLineSpacing ()
 Get line spacing. More...
 
 setWeight (weight)
 Set caption weight. More...
 
 getWeight ()
 Get caption weight. More...
 
 setTextColor (color)
 Set caption text color. More...
 
 getTextColor ()
 Get caption text color. More...
 
 setDrawOutline (drawOutline)
 Set caption stroke. More...
 
 getDrawOutline ()
 Get caption stroke. More...
 
 setOutlineWidth (outlineWidth)
 Set the width of the caption stroke. More...
 
 getOutlineWidth ()
 Get the width of the caption stroke. More...
 
 setOutlineColor (color)
 Set the color of the caption stroke. More...
 
 getOutlineColor ()
 Get the color of the caption stroke. More...
 
 setDrawShadow (drawShadow)
 Set caption shadows. More...
 
 getDrawShadow ()
 Get caption shadows. More...
 
 setShadowOffset (offset)
 Set caption shadow offset. More...
 
 getShadowOffset ()
 Gets the offset of the current caption shadow. More...
 
 setShadowColor (color)
 Set caption shadow color. More...
 
 getShadowColor ()
 Get caption shadow color. More...
 
 setShadowFeather (feather)
 Set the feathering degree of the caption shadow. More...
 
 getShadowFeather ()
 Get the feathering degree of the caption shadow. More...
 
 setFontSize (fontSize)
 Set caption font size. More...
 
 getFontSize ()
 Get caption font size. More...
 
async setFontByFilePath (filePath)
 Set caption font by file path. More...
 
 getFontFilePath ()
 Get caption font file path. More...
 
 setFontFamily (family)
 Set caption font family. More...
 
 getFontFamily ()
 Get caption font family. More...
 
 getFontCompoundFamilyName ()
 Get compound caption font family name. More...
 
 setCaptionTranslation (translation)
 Set the amount of caption translation. More...
 
 getCaptionTranslation ()
 Get the amount of caption translation. More...
 
 translateCaption (translationOffset)
 Caption translation. More...
 
 setAnchorPoint (anchor)
 Set caption anchor. More...
 
 getAnchorPoint ()
 Get caption anchor. More...
 
 setScaleX (scale)
 Set horizontal scaling factor for caption. More...
 
 getScaleX ()
 Get horizontal scaling factor for caption. More...
 
 setScaleY (scale)
 Set vertical scaling factor for caption. More...
 
 getScaleY ()
 Get vertical scaling factor for caption. More...
 
 scaleCaption (scaleFactor, anchor)
 Zooms caption. More...
 
 scaleCaption2 (scaleFactor)
 Scale caption on center. More...
 
 setRotationZ (angle)
 Set rotation angle for caption. More...
 
 getRotationZ ()
 Get rotation angle for caption. More...
 
 rotateCaption (angle, anchor)
 Rotate caption. More...
 
 rotateCaption2 (angle)
 Rotates caption with the caption center point as the anchor point. More...
 
 getTextBoundingRect (captionActualBoundingRect=false)
 Get caption text rectangle. More...
 
 getCaptionBoundingVertices (boundingType)
 Get the transformed vertices position of the original caption bounding. More...
 
 setZValue (value)
 Set caption Z value. More...
 
 getZValue ()
 Get caption Z value. More...
 
 setRecordingUserOperation (recordingUserOperation)
 Set whether to record user actions. More...
 
 setOpacity (opacity)
 Set caption opacity. More...
 
 getOpacity ()
 Get caption opacity. More...
 
 isFrameCaption ()
 Determine if it is a border caption. More...
 
 isTextColorChanged ()
 Determine if caption text color changed. More...
 
 isModular ()
 Determines whether the current caption is a modular caption. More...
 
 setBackgroundColor (backgroundColor)
 Set text background color. More...
 
 getBackgroundColor ()
 Get the current text background color value. More...
 
 setBackgroundRadius (radius)
 Set text background rectangle's corner radius. More...
 
 getBackgroundRadius ()
 Get text background rectangle's corner radius. More...
 
 setCurrentKeyFrameTime (time)
 Set the caption KeyFrameTime. More...
 
 enableSpeed (enable)
 enable speed More...
 
 isSpeedEnabled ()
 is Enable speed More...
 
 setFrameCaptionMaxFontSize (maxFontSize)
 Set the max font size for border caption. Only border caption can use this method. More...
 
 setTextFrameOriginRect (rect)
 Set the original frame size of the frame caption. If the current caption is not a frame caption, this function has no effect. You can get origin frame size. More...
 
 setTextSpanList (spanList)
 Set layout attributes from the start character to the end character of caption in list. More...
 
 getTextSpanList ()
 Get layout attributes list of caption. More...
 
- Public Member Functions inherited from NveEffectInstance
 constructor ()
 The constructor of NveEffectInstance.
 
 release ()
 Release the instance of effect You must call release() if you won't use this effect instance object anymore, otherwise there will be severe internal resources leak!
 
 setIntVal (fxParam, val)
 Set the integer parameter value of the effect. More...
 
 getIntVal (fxParam)
 Get the integer parameter value of the effect. More...
 
 setFloatVal (fxParam, val)
 Set the float parameter value of the effect. More...
 
 getFloatVal (fxParam)
 Get the float parameter value of the effect. More...
 
 setBooleanVal (fxParam, val)
 Set the boolean parameter value of the effect. More...
 
 getBooleanVal (fxParam)
 Get the boolean parameter value of the effect. More...
 
 setMenuVal (fxParam, val)
 Set the menu parameter value of the effect. More...
 
 getMenuVal (fxParam)
 Get the menu parameter value of the effect. More...
 
 setStringVal (fxParam, val)
 Set the string parameter value of the effect. More...
 
 getStringVal (fxParam)
 Get the string parameter value of the effect. More...
 
 setColorVal (fxParam, val)
 Set the color parameter value of the effect. More...
 
 getColorVal (fxParam)
 Get the color parameter value of the effect. More...
 
 setFilterIntensity (intensity)
 Set the intensity of the filter. More...
 
 getFilterIntensity ()
 Get the intensity of the filter. More...
 
 getARSceneManipulate ()
 Get the manipulate of ARScene. More...
 
 getInPoint ()
 Get in-point of effect. More...
 
 getOutPoint ()
 Get out point of effect. More...
 
 changeInPoint (newInPoint)
 Changes in-point of effect. More...
 
 changeOutPoint (newOutPoint)
 Changes out-point of effect. More...
 

Detailed Description

Captions are custom text superimposed on the video. You can add and adjust the caption position. After adding caption, you can also set styles, including font size, color, shadow, stroke, etc.

See also
NveEffectInstance

Member Function Documentation

◆ applyCaptionStyle()

NveCaption::applyCaptionStyle (   captionStylePackageId,
  isUseDefaultAssetParam 
)
inline

Apply caption style.

Parameters
{String}captionStylePackageId Caption style resource package ID.
{Number}isUseDefaultAssetParam Whether to use the properties that come with the caption package.
Returns
{Boolean} Returns boolean value. True means a successful application, false means a failure.

◆ applyModularCaptionAnimation()

NveCaption::applyModularCaptionAnimation (   captionAnimationPackageId)
inline

Applys modular caption loop-animation style.

Parameters
{String}captionAnimationPackageId caption animation package id
Returns
{Boolean} Returns boolean value. True means a successful application, false means a failure.

◆ applyModularCaptionContext()

NveCaption::applyModularCaptionContext (   captionContextPackageId)
inline

Applys modular caption context style.

Parameters
{String}captionContextPackageId Modular caption context style resource package ID.
Returns
{Boolean} Returns boolean value. True means a successful application, false means a failure.

◆ applyModularCaptionInAnimation()

NveCaption::applyModularCaptionInAnimation (   captionInAnimationPackageId)
inline

Applys modular caption in-animation style. Notes:please set loop-Animation to null before you set in-animation, otherwise it will NOT works.

Parameters
{String}captionInAnimationPackageId caption in animation package id
Returns
{Boolean} Returns boolean value. True means a successful application, false means a failure.

◆ applyModularCaptionOutAnimation()

NveCaption::applyModularCaptionOutAnimation (   captionOutAnimationPackageId)
inline

Applys modular caption out-animation style.Notes:please set loop-Animation to null before you set out-animation, otherwise it will NOT works.

Parameters
{String}captionOutAnimationPackageId Modular caption out-animation style resource package ID.
Returns
{Boolean} Returns boolean value. True means a successful application, false means a failure.

◆ applyModularCaptionRenderer()

NveCaption::applyModularCaptionRenderer (   captionRendererPackageId)
inline

Applys modular caption render style.

Parameters
{String}captionRendererPackageId Modular caption render style resource package ID.
Returns
{Boolean} Returns boolean value. True means a successful application, false means a failure.

◆ enableSpeed()

NveCaption::enableSpeed (   enable)
inline

enable speed

Parameters
{Boolean}enable
Returns
{void}

◆ getAnchorPoint()

NveCaption::getAnchorPoint ( )
inline

Get caption anchor.

Returns
{NvePointF} Returns caption anchor.

◆ getBackgroundColor()

NveCaption::getBackgroundColor ( )
inline

Get the current text background color value.

Returns
{NveColor} Returns the NveColor object representing the current background color.

◆ getBackgroundRadius()

NveCaption::getBackgroundRadius ( )
inline

Get text background rectangle's corner radius.

Returns
{Number} Returns corner radius value

◆ getBold()

NveCaption::getBold ( )
inline

Get the caption font bold state.

Returns
{Boolean} Returns the caption font bold state. True means the font is bold, false means the font is not bold.

◆ getCaptionBoundingVertices()

NveCaption::getCaptionBoundingVertices (   boundingType)
inline

Get the transformed vertices position of the original caption bounding.

Parameters
{number}boundingType (NveCaptionTextBoundingTypeEnum) Bounding type
Returns
{NveVectorVal<NvePointF>} Returns a NveVectorVal<NvePointF> object containing four vertices positions, which correspond to the top left, bottom left, bottom right, and top right vertices of the original bounding.

◆ getCaptionStylePackageId()

NveCaption::getCaptionStylePackageId ( )
inline

Gets the caption style package ID.

Returns
{String} Returns the obtained caption style resource package ID.

◆ getCaptionTranslation()

NveCaption::getCaptionTranslation ( )
inline

Get the amount of caption translation.

Returns
{NvePointF} Returns NvePointF object indicating the amount of caption translation obtained.

◆ getDrawOutline()

NveCaption::getDrawOutline ( )
inline

Get caption stroke.

Returns
{Boolean}

◆ getDrawShadow()

NveCaption::getDrawShadow ( )
inline

Get caption shadows.

Returns
{Boolean}

◆ getFontCompoundFamilyName()

NveCaption::getFontCompoundFamilyName ( )
inline

Get compound caption font family name.

Returns
{String} Returns the compound caption font family name of caption.

◆ getFontFamily()

NveCaption::getFontFamily ( )
inline

Get caption font family.

Returns
{String} Returns font family of caption.

◆ getFontFilePath()

NveCaption::getFontFilePath ( )
inline

Get caption font file path.

Returns
{String} Returns the file path of the caption font.

◆ getFontSize()

NveCaption::getFontSize ( )
inline

Get caption font size.

Returns
{Number} Returns the obtained caption font size value.

◆ getItalic()

NveCaption::getItalic ( )
inline

Get caption font italic.

Returns
{Boolean} Returns boolean value. True means it is italic font, false means it is not italic.

◆ getLetterSpacing()

NveCaption::getLetterSpacing ( )
inline

Get caption letter spacing.

Returns
{Number} Returns the float value, the percentage value by default.

◆ getLetterSpacingType()

NveCaption::getLetterSpacingType ( )
inline

Get caption word spacing type.

Returns
{Number} return letterSpacingType.

◆ getLineSpacing()

NveCaption::getLineSpacing ( )
inline

Get line spacing.

Returns
{Number} return float value, line spacing is expressed in absolute value.

◆ getModularCaptionAnimationPackageId()

NveCaption::getModularCaptionAnimationPackageId ( )
inline

Gets the modular caption animation style package ID.

Returns
{String} Returns the obtained modular caption animation style resource package ID.

◆ getModularCaptionAnimationPeriod()

NveCaption::getModularCaptionAnimationPeriod ( )
inline

Get modular caption Animation Period.

Returns
{Number} Return animation period in millisecond

◆ getModularCaptionContextPackageId()

NveCaption::getModularCaptionContextPackageId ( )
inline

Gets the modular caption context style package ID.

Returns
{String} Returns the obtained modular caption context style resource package ID.

◆ getModularCaptionInAnimationDuration()

NveCaption::getModularCaptionInAnimationDuration ( )
inline

Get modular caption in-animation duration.

Returns
{Number} Return in-animation duration in millisecond

◆ getModularCaptionInAnimationPackageId()

NveCaption::getModularCaptionInAnimationPackageId ( )
inline

Gets the modular caption in-animation style package ID.

Returns
{String} Returns the obtained modular caption in-animation style resource package ID.

◆ getModularCaptionOutAnimationDuration()

NveCaption::getModularCaptionOutAnimationDuration ( )
inline

Get modular caption out-animation duration.

Returns
{Number} Return out-animation duration in millisecond

◆ getModularCaptionOutAnimationPackageId()

NveCaption::getModularCaptionOutAnimationPackageId ( )
inline

Gets the modular caption out-animation style package ID.

Returns
{String} Returns the obtained modular caption out-animation style resource package ID.

◆ getModularCaptionRendererPackageId()

NveCaption::getModularCaptionRendererPackageId ( )
inline

Gets the modular caption context style package ID.

Returns
{String} Returns the obtained modular caption context style resource package ID.

◆ getOpacity()

NveCaption::getOpacity ( )
inline

Get caption opacity.

Returns
{Number} Return the caption opacity.

◆ getOutlineColor()

NveCaption::getOutlineColor ( )
inline

Get the color of the caption stroke.

Returns
{NveColor} Returns the NveColor object representing the color of the resulting caption stroke.

◆ getOutlineWidth()

NveCaption::getOutlineWidth ( )
inline

Get the width of the caption stroke.

Returns
{Number} Returns the width value of the obtained caption stroke.

◆ getRotationZ()

NveCaption::getRotationZ ( )
inline

Get rotation angle for caption.

Returns
{Number} Returns caption rotation angle.

◆ getScaleX()

NveCaption::getScaleX ( )
inline

Get horizontal scaling factor for caption.

Returns
{Number} Returns caption horizontal scaling factor.

◆ getScaleY()

NveCaption::getScaleY ( )
inline

Get vertical scaling factor for caption.

Returns
{Number} Returns caption vertical scaling factor.

◆ getShadowColor()

NveCaption::getShadowColor ( )
inline

Get caption shadow color.

Returns
{NveColor} Returns the NveColor object representing the caption shadow color value obtained.

◆ getShadowFeather()

NveCaption::getShadowFeather ( )
inline

Get the feathering degree of the caption shadow.

Returns
{Number} Returns feathering degree

◆ getShadowOffset()

NveCaption::getShadowOffset ( )
inline

Gets the offset of the current caption shadow.

Returns
{NvePointF} Returns a NvePointF object representing the caption shadow offset obtained.

◆ getText()

NveCaption::getText ( )
inline

Gets caption text.

Returns
{String} Returns caption text obtained.

◆ getTextAlignment()

NveCaption::getTextAlignment ( )
inline

Get caption horizontal alignment style.

Returns
{Number} Returns caption horizontal alignment style.

◆ getTextBoundingRect()

NveCaption::getTextBoundingRect (   captionActualBoundingRect = false)
inline

Get caption text rectangle.

Parameters
{Boolean}captionActualBoundingRect text original rect or not.
Returns
{NveRectF} Returns RectF object representing the obtained caption text rectangle.

◆ getTextColor()

NveCaption::getTextColor ( )
inline

Get caption text color.

Returns
{NveColor} Returns the NveColor object representing the color value obtained.

◆ getTextSpanList()

NveCaption::getTextSpanList ( )
inline

Get layout attributes list of caption.

Returns
{NveVectorVal<NveCaptionSpan>} layout attributes list

◆ getTextVerticalAlignment()

NveCaption::getTextVerticalAlignment ( )
inline

Gets caption vertical alignment style, valid for frame-caption only.

Returns
{Number} Returns caption vertical alignment style.

◆ getUnderline()

NveCaption::getUnderline ( )
inline

Get caption underline.

Returns
{Boolean} Returns boolean value. True means it is under line, false means it is not.

◆ getVerticalLayout()

NveCaption::getVerticalLayout ( )
inline

Gets whether to layout text vertically.

Returns
{Boolean}

◆ getWeight()

NveCaption::getWeight ( )
inline

Get caption weight.

Returns
{Number} Returns the caption weight.

◆ getZValue()

NveCaption::getZValue ( )
inline

Get caption Z value.

Returns
{Number} Returns caption Z value.

◆ isFrameCaption()

NveCaption::isFrameCaption ( )
inline

Determine if it is a border caption.

Returns
{Boolean} A return value of true indicates a border caption

◆ isModular()

NveCaption::isModular ( )
inline

Determines whether the current caption is a modular caption.

Returns
{Boolean} If returns value is true, it is panorama caption.

◆ isSpeedEnabled()

NveCaption::isSpeedEnabled ( )
inline

is Enable speed

Returns
{Boolean}

◆ isTextColorChanged()

NveCaption::isTextColorChanged ( )
inline

Determine if caption text color changed.

Returns
{void}

◆ rotateCaption()

NveCaption::rotateCaption (   angle,
  anchor 
)
inline

Rotate caption.

Parameters
{Number}angle Angle of caption rotation.
{NvePointF}anchor Anchor of caption rotation.
Returns
{void}

◆ rotateCaption2()

NveCaption::rotateCaption2 (   angle)
inline

Rotates caption with the caption center point as the anchor point.

Parameters
{Number}angle Angle of caption rotation.
Returns
{void}

◆ scaleCaption()

NveCaption::scaleCaption (   scaleFactor,
  anchor 
)
inline

Zooms caption.

Parameters
{Number}scaleFactor Caption scaling factor.
{NvePointF}anchor Caption zoom anchor.
Returns
{void}

◆ scaleCaption2()

NveCaption::scaleCaption2 (   scaleFactor)
inline

Scale caption on center.

Parameters
{Number}scaleFactor scale factor
Returns
{void}

◆ setAnchorPoint()

NveCaption::setAnchorPoint (   anchor)
inline

Set caption anchor.

Parameters
{NvePointF}anchor Anchor
Returns
{void}

◆ setBackgroundColor()

NveCaption::setBackgroundColor (   backgroundColor)
inline

Set text background color.

Parameters
{NveColor}backgroundColor Background color value.
Returns
{void}

◆ setBackgroundRadius()

NveCaption::setBackgroundRadius (   radius)
inline

Set text background rectangle's corner radius.

Parameters
{Number}radius Corner radius value
Returns
{void}

◆ setBold()

NveCaption::setBold (   bold)
inline

Set caption font bold.

Parameters
{Boolean}bold Indicates whether the caption font is bold. True means the font is bold, false means the font is not bold.
Returns
{void}

◆ setCaptionTranslation()

NveCaption::setCaptionTranslation (   translation)
inline

Set the amount of caption translation.

Parameters
{NvePointF}translation The horizontal and vertical absolute translation of the caption.
Returns
{void}

◆ setCurrentKeyFrameTime()

NveCaption::setCurrentKeyFrameTime (   time)
inline

Set the caption KeyFrameTime.

Parameters
{Number}time time
Returns
{void}

◆ setDrawOutline()

NveCaption::setDrawOutline (   drawOutline)
inline

Set caption stroke.

Parameters
{Boolean}drawOutline Whether to stroke the captions. True means it strokes the caption. False means it does not stroke the edges.
Returns
{void}

◆ setDrawShadow()

NveCaption::setDrawShadow (   drawShadow)
inline

Set caption shadows.

Parameters
{Boolean}drawShadow Whether to set the caption shadow. True means to set the caption shadow, false means to not set.
Returns
{void}

◆ setFontByFilePath()

async NveCaption::setFontByFilePath (   filePath)
inline

Set caption font by file path.

Parameters
{String}filePath The file path of the caption font. If it is set to a null string, it is set as the default font.
Returns
{void}

◆ setFontFamily()

NveCaption::setFontFamily (   family)
inline

Set caption font family.

Parameters
{String}family Caption font name. It will be set to default font if a null string which is given.
Returns
{void}

◆ setFontSize()

NveCaption::setFontSize (   fontSize)
inline

Set caption font size.

Parameters
{Number}fontSize Caption font size value
Returns
{void}

◆ setFrameCaptionMaxFontSize()

NveCaption::setFrameCaptionMaxFontSize (   maxFontSize)
inline

Set the max font size for border caption. Only border caption can use this method.

Parameters
{Number}maxFontSize max font size
Returns
{void}

◆ setItalic()

NveCaption::setItalic (   italic)
inline

Set caption font italic.

Parameters
{Boolean}italic Whether it is set to italic. True means that the caption font is set to italic, and false means the caption font is not set to italic.
Returns
{void}

◆ setLetterSpacing()

NveCaption::setLetterSpacing (   letterSpacing)
inline

Set caption letter spacing.

Parameters
{Number}letterSpacing Word spacing is expressed in percentage value by default.
Returns
{void}

◆ setLetterSpacingType()

NveCaption::setLetterSpacingType (   letterSpacingType)
inline

Set caption word spacing type.

Parameters
{Number}letterSpacingType Word spacing type.
Returns
{void}

◆ setLineSpacing()

NveCaption::setLineSpacing (   lineSpacing)
inline

Set line spacing.

Parameters
{}lineSpacing line spacing is expressed in absolute value.
Returns
{void}

◆ setModularCaptionAnimationPeriod()

NveCaption::setModularCaptionAnimationPeriod (   periodInMS)
inline

Set modular caption Animation Period.

Parameters
{Number}periodInMS Animation Period in millisecond
Returns
{void}

◆ setModularCaptionInAnimationDuration()

NveCaption::setModularCaptionInAnimationDuration (   inAnimationDurationInMS)
inline

Set modular caption in-animation duration.

Parameters
{Number}inAnimationDurationInMS in-animation duration in millisecond
Returns
{void}

◆ setModularCaptionOutAnimationDuration()

NveCaption::setModularCaptionOutAnimationDuration (   outAnimationDurationInMS)
inline

Set modular caption out-animation duration.

Parameters
{Number}outAnimationDurationInMS out-animation duration in millisecond
Returns
{void}

◆ setOpacity()

NveCaption::setOpacity (   opacity)
inline

Set caption opacity.

Parameters
{Number}opacity caption opacity.
Returns
{void}

◆ setOutlineColor()

NveCaption::setOutlineColor (   color)
inline

Set the color of the caption stroke.

Parameters
{NveColor}color Caption stroke color value.
Returns
{void}
See also
NveColor

◆ setOutlineWidth()

NveCaption::setOutlineWidth (   outlineWidth)
inline

Set the width of the caption stroke.

Parameters
{Number}outlineWidth The width of the caption stroke.
Returns
{void}

◆ setRecordingUserOperation()

NveCaption::setRecordingUserOperation (   recordingUserOperation)
inline

Set whether to record user actions.

Parameters
{Boolean}recordingUserOperation Record user actions or not
Returns
{void}

◆ setRotationZ()

NveCaption::setRotationZ (   angle)
inline

Set rotation angle for caption.

Parameters
{Number}angle Rotation angle.
Returns
{void}

◆ setScaleX()

NveCaption::setScaleX (   scale)
inline

Set horizontal scaling factor for caption.

Parameters
{Number}scale Horizontal scaling factor.
Returns
{void}

◆ setScaleY()

NveCaption::setScaleY (   scale)
inline

Set vertical scaling factor for caption.

Parameters
{Number}scale Vertical scaling factor.
Returns
{void}

◆ setShadowColor()

NveCaption::setShadowColor (   color)
inline

Set caption shadow color.

Parameters
{NveColor}shadowColor Caption shadow color value.
Returns
{void}

◆ setShadowFeather()

NveCaption::setShadowFeather (   feather)
inline

Set the feathering degree of the caption shadow.

Parameters
{Number}feather feathering degree
Returns
{void}

◆ setShadowOffset()

NveCaption::setShadowOffset (   offset)
inline

Set caption shadow offset.

Parameters
{NvePointF}offset Caption shadow offset.
Returns
{void}

◆ setText()

NveCaption::setText (   text)
inline

Sets caption text.

Parameters
{String}text Caption text
Returns
{void}

◆ setTextAlignment()

NveCaption::setTextAlignment (   textAlign)
inline

Set caption horizontal alignment style.

Parameters
{Number}textAlign Indicates the caption horizontal alignment style
Returns
{void}

◆ setTextColor()

NveCaption::setTextColor (   color)
inline

Set caption text color.

Parameters
{NveColor}color Caption text color value.

◆ setTextFrameOriginRect()

NveCaption::setTextFrameOriginRect (   rect)
inline

Set the original frame size of the frame caption. If the current caption is not a frame caption, this function has no effect. You can get origin frame size.

Parameters
{NveRectF}rect New frame size.
Returns
{void}

◆ setTextSpanList()

NveCaption::setTextSpanList (   spanList)
inline

Set layout attributes from the start character to the end character of caption in list.

Parameters
{NveVectorVal<NveCaptionSpan>}spanList layout attributes list
Returns
{void}

◆ setTextVerticalAlignment()

NveCaption::setTextVerticalAlignment (   textAlign)
inline

Set caption horizontal alignment style.

Parameters
{Number}textAlign Indicates the caption horizontal alignment style
Returns
{void}

◆ setUnderline()

NveCaption::setUnderline (   underline)
inline

Set caption underline.

Parameters
{Boolean}underline Whether it is set to under line.
Returns
{void}

◆ setVerticalLayout()

NveCaption::setVerticalLayout (   verticalLayout)
inline

Sets whether to layout text vertically.

Parameters
{Boolean}verticalLayout whether to layout text vertically
Returns
{void}

◆ setWeight()

NveCaption::setWeight (   weight)
inline

Set caption weight.

Parameters
{Number}weight the value in opentype weight integer.
Returns
{void}

◆ setZValue()

NveCaption::setZValue (   value)
inline

Set caption Z value.

Parameters
{Number}value Z value
Returns
{void}

◆ translateCaption()

NveCaption::translateCaption (   translationOffset)
inline

Caption translation.

Parameters
{NvePointF}translationOffset Horizontal and vertical offset values for caption.
Returns
{void}

The documentation for this class was generated from the following file: