public class Canvas extends AbstractModel
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, which is the height (or long side) of the output video.
|
Long |
getWidth()
Get Canvas width, which is the width of the output video.
|
void |
setColor(String Color)
Set Background color.
|
void |
setHeight(Long Height)
Set Canvas height, which is the height (or long side) of the output video.
|
void |
setWidth(Long Width)
Set Canvas width, which is the width of the output video.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public 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, which is the width of the output video. Value range: 0-4096 px.
Default value: 0, which means that the value is the same as the video width of the first video segment in the first video track.public Long getHeight()
public void setHeight(Long Height)
Height
- Canvas height, which is the height (or long side) of the output video. Value range: 0-4096 px.
Default value: 0, which means that the value is the same as the video height of the first video segment in the first video track.Copyright © 2023. All rights reserved.