public class Canvas extends AbstractModel
header, skipSign| Constructor and Description |
|---|
Canvas() |
Canvas(Canvas 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 |
getColor()
Get Background color.
|
Long |
getHeight()
Get Canvas height, that is, the height (or long side) of the output video, value range: 0~3840, unit: px.
|
Long |
getWidth()
Get Canvas width, that is, the width of the output video, value range: 0~3840, unit: px.
|
void |
setColor(String Color)
Set Background color.
|
void |
setHeight(Long Height)
Set Canvas height, that is, the height (or long side) of the output video, value range: 0~3840, unit: px.
|
void |
setWidth(Long Width)
Set Canvas width, that is, the width of the output video, value range: 0~3840, unit: px.
|
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, toJsonStringpublic Canvas()
public Canvas(Canvas source)
public String getColor()
public void setColor(String Color)
Color - Background color. Valid values:
public Long getWidth()
public void setWidth(Long Width)
Width - Canvas width, that is, the width of the output video, value range: 0~3840, unit: px.
Default value: 0, which means the video width is the same as the first video clip of the first video track.public Long getHeight()
public void setHeight(Long Height)
Height - Canvas height, that is, the height (or long side) of the output video, value range: 0~3840, unit: px.
Default value: 0, which means the video height is consistent with the first video clip of the first video track.Copyright © 2025. All rights reserved.