public class WaterMarkParams extends AbstractModel
Constructor and Description |
---|
WaterMarkParams() |
WaterMarkParams(WaterMarkParams 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 |
---|---|
Long |
getLocationX()
Get Horizontal offset (px) of the watermark
|
Long |
getLocationY()
Get Vertical offset (px) of the watermark
|
Long |
getWaterMarkHeight()
Get Height (px) of the watermark for On-Cloud MixTranscoding
|
Long |
getWaterMarkId()
Get Image ID of the watermark, which is generated after the image is uploaded to the TRTC console
|
String |
getWaterMarkUrl()
Get URL of the watermark image for the mixed stream, which can be in PNG, JPG, JPEG, or BMP format and does not support the alpha channel.
|
Long |
getWaterMarkWidth()
Get Width (px) of the watermark for On-Cloud MixTranscoding
|
void |
setLocationX(Long LocationX)
Set Horizontal offset (px) of the watermark
|
void |
setLocationY(Long LocationY)
Set Vertical offset (px) of the watermark
|
void |
setWaterMarkHeight(Long WaterMarkHeight)
Set Height (px) of the watermark for On-Cloud MixTranscoding
|
void |
setWaterMarkId(Long WaterMarkId)
Set Image ID of the watermark, which is generated after the image is uploaded to the TRTC console
|
void |
setWaterMarkUrl(String WaterMarkUrl)
Set URL of the watermark image for the mixed stream, which can be in PNG, JPG, JPEG, or BMP format and does not support the alpha channel.
|
void |
setWaterMarkWidth(Long WaterMarkWidth)
Set Width (px) of the watermark for On-Cloud MixTranscoding
|
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 WaterMarkParams()
public WaterMarkParams(WaterMarkParams source)
public Long getWaterMarkId()
public void setWaterMarkId(Long WaterMarkId)
WaterMarkId
- Image ID of the watermark, which is generated after the image is uploaded to the TRTC consolepublic Long getWaterMarkWidth()
public void setWaterMarkWidth(Long WaterMarkWidth)
WaterMarkWidth
- Width (px) of the watermark for On-Cloud MixTranscodingpublic Long getWaterMarkHeight()
public void setWaterMarkHeight(Long WaterMarkHeight)
WaterMarkHeight
- Height (px) of the watermark for On-Cloud MixTranscodingpublic Long getLocationX()
public void setLocationX(Long LocationX)
LocationX
- Horizontal offset (px) of the watermarkpublic Long getLocationY()
public void setLocationY(Long LocationY)
LocationY
- Vertical offset (px) of the watermarkpublic String getWaterMarkUrl()
public void setWaterMarkUrl(String WaterMarkUrl)
WaterMarkUrl
- URL of the watermark image for the mixed stream, which can be in PNG, JPG, JPEG, or BMP format and does not support the alpha channel. The URL must not exceed 512 bytes. When both `WaterMarkUrl` and `WaterMarkId` are specified, the former will be used. The watermark image cannot exceed 10 MB.Copyright © 2022. All rights reserved.