public class ComposeSubtitleStyle extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and 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像素。
默认:0px
|
void |
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像素。
默认:0px
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ComposeSubtitleStyle()
public ComposeSubtitleStyle(ComposeSubtitleStyle source)
public String getHeight()
public void setHeight(String Height)
Height
- 字幕高度。支持 %、px 两种格式:
public String getMarginBottom()
public void setMarginBottom(String MarginBottom)
MarginBottom
- 字幕距离下边框距离,支持 %、px 两种格式:
public String getFontType()
public void setFontType(String FontType)
FontType
- 字体类型,支持:
public String getFontSize()
public void setFontSize(String FontSize)
FontSize
- 字体大小,支持 %、px 两种格式:
public Long getFontBold()
public void setFontBold(Long FontBold)
FontBold
- 是否使用粗体,和字体相关,可选值:
public Long getFontItalic()
public void setFontItalic(Long FontItalic)
FontItalic
- 是否使用斜体,和字体相关,可选值:
public String getFontColor()
public void setFontColor(String FontColor)
FontColor
- 字体颜色,格式:#RRGGBBAA。
默认值:0x000000FF(黑色)。
注意:其中 AA 部分指的是透明度,为可选。public String getFontAlign()
public void setFontAlign(String FontAlign)
FontAlign
- 文字对齐方式:
public String getFontAlignMargin()
public void setFontAlignMargin(String FontAlignMargin)
FontAlignMargin
- 用于字幕对齐留白:
public String getBorderWidth()
public void setBorderWidth(String BorderWidth)
BorderWidth
- 字体边框宽度,支持 %、px 两种格式:
public String getBorderColor()
public void setBorderColor(String BorderColor)
BorderColor
- 边框颜色,当 BorderWidth 不为 0 时生效,其值格式和 FontColor 一致。public String getBottomColor()
public void setBottomColor(String BottomColor)
BottomColor
- 文字底色,其值格式和 FontColor 一致。
默认为空, 表示不使用底色。Copyright © 2024. All rights reserved.