Class ComposeSubtitleStyle
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.mps.v20190612.models.ComposeSubtitleStyle
-
public class ComposeSubtitleStyle extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ComposeSubtitleStyle()
ComposeSubtitleStyle(ComposeSubtitleStyle source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBorderColor()
Get 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。String
getBorderWidth()
Get 字体边框宽度,支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认: 0,表示不需要边框。String
getBottomColor()
Get 文字底色,其值格式和 FontColor 一致。 默认为空, 表示不使用底色。String
getFontAlign()
Get 文字对齐方式: Center:居中(默认)。 Left:左对齐。 Right:右对齐。String
getFontAlignMargin()
Get 用于字幕对齐留白: FontAlign=Left 时,表示距离左边距离。 FontAlign=Right时,表示距离右边距离。 支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。Long
getFontBold()
Get 是否使用粗体,和字体相关,可选值: 0:否(默认)。 1:是。String
getFontColor()
Get 字体颜色,格式:#RRGGBBAA。 默认值:0x000000FF(黑色)。 注意:其中 AA 部分指的是透明度,为可选。Long
getFontItalic()
Get 是否使用斜体,和字体相关,可选值: 0:否(默认)。 1:是。String
getFontSize()
Get 字体大小,支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认:2%String
getFontType()
Get 字体类型,支持: SimHei:黑体(默认)。 SimSun:宋体。String
getHeight()
Get 字幕高度。支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认为 FontSize 大小。String
getMarginBottom()
Get 字幕距离下边框距离,支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认:0pxvoid
setBorderColor(String BorderColor)
Set 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。void
setBorderWidth(String BorderWidth)
Set 字体边框宽度,支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认: 0,表示不需要边框。void
setBottomColor(String BottomColor)
Set 文字底色,其值格式和 FontColor 一致。 默认为空, 表示不使用底色。void
setFontAlign(String FontAlign)
Set 文字对齐方式: Center:居中(默认)。 Left:左对齐。 Right:右对齐。void
setFontAlignMargin(String FontAlignMargin)
Set 用于字幕对齐留白: FontAlign=Left 时,表示距离左边距离。 FontAlign=Right时,表示距离右边距离。 支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。void
setFontBold(Long FontBold)
Set 是否使用粗体,和字体相关,可选值: 0:否(默认)。 1:是。void
setFontColor(String FontColor)
Set 字体颜色,格式:#RRGGBBAA。 默认值:0x000000FF(黑色)。 注意:其中 AA 部分指的是透明度,为可选。void
setFontItalic(Long FontItalic)
Set 是否使用斜体,和字体相关,可选值: 0:否(默认)。 1:是。void
setFontSize(String FontSize)
Set 字体大小,支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认:2%void
setFontType(String FontType)
Set 字体类型,支持: SimHei:黑体(默认)。 SimSun:宋体。void
setHeight(String Height)
Set 字幕高度。支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认为 FontSize 大小。void
setMarginBottom(String MarginBottom)
Set 字幕距离下边框距离,支持 %、px 两种格式: 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。 默认:0pxvoid
toMap(HashMap<String,String> map, String prefix)
Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ComposeSubtitleStyle
public ComposeSubtitleStyle()
-
ComposeSubtitleStyle
public ComposeSubtitleStyle(ComposeSubtitleStyle source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getHeight
public String getHeight()
Get 字幕高度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认为 FontSize 大小。- Returns:
- Height 字幕高度。支持 %、px 两种格式:
- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认为 FontSize 大小。
-
setHeight
public void setHeight(String Height)
Set 字幕高度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认为 FontSize 大小。- Parameters:
Height
- 字幕高度。支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认为 FontSize 大小。
-
getMarginBottom
public String getMarginBottom()
Get 字幕距离下边框距离,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:0px- Returns:
- MarginBottom 字幕距离下边框距离,支持 %、px 两种格式:
- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:0px
-
setMarginBottom
public void setMarginBottom(String MarginBottom)
Set 字幕距离下边框距离,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:0px- Parameters:
MarginBottom
- 字幕距离下边框距离,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:0px
-
getFontType
public String getFontType()
Get 字体类型,支持:- SimHei:黑体(默认)。
- SimSun:宋体。
- Returns:
- FontType 字体类型,支持:
- SimHei:黑体(默认)。
- SimSun:宋体。
-
setFontType
public void setFontType(String FontType)
Set 字体类型,支持:- SimHei:黑体(默认)。
- SimSun:宋体。
- Parameters:
FontType
- 字体类型,支持:- SimHei:黑体(默认)。
- SimSun:宋体。
-
getFontSize
public String getFontSize()
Get 字体大小,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:2%- Returns:
- FontSize 字体大小,支持 %、px 两种格式:
- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:2%
-
setFontSize
public void setFontSize(String FontSize)
Set 字体大小,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:2%- Parameters:
FontSize
- 字体大小,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认:2%
-
getFontBold
public Long getFontBold()
Get 是否使用粗体,和字体相关,可选值:- 0:否(默认)。
- 1:是。
- Returns:
- FontBold 是否使用粗体,和字体相关,可选值:
- 0:否(默认)。
- 1:是。
-
setFontBold
public void setFontBold(Long FontBold)
Set 是否使用粗体,和字体相关,可选值:- 0:否(默认)。
- 1:是。
- Parameters:
FontBold
- 是否使用粗体,和字体相关,可选值:- 0:否(默认)。
- 1:是。
-
getFontItalic
public Long getFontItalic()
Get 是否使用斜体,和字体相关,可选值:- 0:否(默认)。
- 1:是。
- Returns:
- FontItalic 是否使用斜体,和字体相关,可选值:
- 0:否(默认)。
- 1:是。
-
setFontItalic
public void setFontItalic(Long FontItalic)
Set 是否使用斜体,和字体相关,可选值:- 0:否(默认)。
- 1:是。
- Parameters:
FontItalic
- 是否使用斜体,和字体相关,可选值:- 0:否(默认)。
- 1:是。
-
getFontColor
public String getFontColor()
Get 字体颜色,格式:#RRGGBBAA。 默认值:0x000000FF(黑色)。 注意:其中 AA 部分指的是透明度,为可选。- Returns:
- FontColor 字体颜色,格式:#RRGGBBAA。 默认值:0x000000FF(黑色)。 注意:其中 AA 部分指的是透明度,为可选。
-
setFontColor
public void setFontColor(String FontColor)
Set 字体颜色,格式:#RRGGBBAA。 默认值:0x000000FF(黑色)。 注意:其中 AA 部分指的是透明度,为可选。- Parameters:
FontColor
- 字体颜色,格式:#RRGGBBAA。 默认值:0x000000FF(黑色)。 注意:其中 AA 部分指的是透明度,为可选。
-
getFontAlign
public String getFontAlign()
Get 文字对齐方式:- Center:居中(默认)。
- Left:左对齐。
- Right:右对齐。
- Returns:
- FontAlign 文字对齐方式:
- Center:居中(默认)。
- Left:左对齐。
- Right:右对齐。
-
setFontAlign
public void setFontAlign(String FontAlign)
Set 文字对齐方式:- Center:居中(默认)。
- Left:左对齐。
- Right:右对齐。
- Parameters:
FontAlign
- 文字对齐方式:- Center:居中(默认)。
- Left:左对齐。
- Right:右对齐。
-
getFontAlignMargin
public String getFontAlignMargin()
Get 用于字幕对齐留白:- FontAlign=Left 时,表示距离左边距离。
- FontAlign=Right时,表示距离右边距离。
支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
- Returns:
- FontAlignMargin 用于字幕对齐留白:
- FontAlign=Left 时,表示距离左边距离。
- FontAlign=Right时,表示距离右边距离。
支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
-
setFontAlignMargin
public void setFontAlignMargin(String FontAlignMargin)
Set 用于字幕对齐留白:- FontAlign=Left 时,表示距离左边距离。
- FontAlign=Right时,表示距离右边距离。
支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
- Parameters:
FontAlignMargin
- 用于字幕对齐留白:- FontAlign=Left 时,表示距离左边距离。
- FontAlign=Right时,表示距离右边距离。
支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布宽度的百分比大小,如 10% 表示为画布宽度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
-
getBorderWidth
public String getBorderWidth()
Get 字体边框宽度,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认: 0,表示不需要边框。- Returns:
- BorderWidth 字体边框宽度,支持 %、px 两种格式:
- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认: 0,表示不需要边框。
-
setBorderWidth
public void setBorderWidth(String BorderWidth)
Set 字体边框宽度,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认: 0,表示不需要边框。- Parameters:
BorderWidth
- 字体边框宽度,支持 %、px 两种格式:- 当字符串以 % 结尾,表示为画布高度的百分比大小,如 10% 表示为画布高度的 10%。
- 当字符串以 px 结尾,表示单位为像素,如 100px 表示为100像素。
默认: 0,表示不需要边框。
-
getBorderColor
public String getBorderColor()
Get 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。- Returns:
- BorderColor 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。
-
setBorderColor
public void setBorderColor(String BorderColor)
Set 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。- Parameters:
BorderColor
- 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。
-
getBottomColor
public String getBottomColor()
Get 文字底色,其值格式和 FontColor 一致。 默认为空, 表示不使用底色。- Returns:
- BottomColor 文字底色,其值格式和 FontColor 一致。 默认为空, 表示不使用底色。
-
setBottomColor
public void setBottomColor(String BottomColor)
Set 文字底色,其值格式和 FontColor 一致。 默认为空, 表示不使用底色。- Parameters:
BottomColor
- 文字底色,其值格式和 FontColor 一致。 默认为空, 表示不使用底色。
-
-