Class MediaCuttingWatermarkText
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ie.v20200304.models.MediaCuttingWatermarkText
-
public class MediaCuttingWatermarkText extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description MediaCuttingWatermarkText()MediaCuttingWatermarkText(MediaCuttingWatermarkText 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 StringgetFont()Get 字体,可选值: SimHei SimKai Arial 默认 SimHei。LonggetFontAlpha()Get 文字透明度,范围:0~100,默认值:100。StringgetFontColor()Get 文字颜色,格式为:#RRGGBBAA,默认值:#000000。LonggetFontSize()Get 文字大小StringgetPosOriginType()Get 指定坐标原点,可选值: LeftTop:PosXY 表示水印左上点到图片左上点的相对位置 RightTop:PosXY 表示水印右上点到图片右上点的相对位置 LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置 RightBottom:PosXY 表示水印右下点到图片右下点的相对位置 Center:PosXY 表示水印中心点到图片中心点的相对位置 默认:LeftTop。LonggetPosX()Get 水印水平坐标,单位像素,默认:0。LonggetPosY()Get 水印垂直坐标,单位像素,默认:0。StringgetText()Get 水印文字。voidsetFont(String Font)Set 字体,可选值: SimHei SimKai Arial 默认 SimHei。voidsetFontAlpha(Long FontAlpha)Set 文字透明度,范围:0~100,默认值:100。voidsetFontColor(String FontColor)Set 文字颜色,格式为:#RRGGBBAA,默认值:#000000。voidsetFontSize(Long FontSize)Set 文字大小voidsetPosOriginType(String PosOriginType)Set 指定坐标原点,可选值: LeftTop:PosXY 表示水印左上点到图片左上点的相对位置 RightTop:PosXY 表示水印右上点到图片右上点的相对位置 LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置 RightBottom:PosXY 表示水印右下点到图片右下点的相对位置 Center:PosXY 表示水印中心点到图片中心点的相对位置 默认:LeftTop。voidsetPosX(Long PosX)Set 水印水平坐标,单位像素,默认:0。voidsetPosY(Long PosY)Set 水印垂直坐标,单位像素,默认:0。voidsetText(String Text)Set 水印文字。voidtoMap(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
-
MediaCuttingWatermarkText
public MediaCuttingWatermarkText()
-
MediaCuttingWatermarkText
public MediaCuttingWatermarkText(MediaCuttingWatermarkText 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
-
getText
public String getText()
Get 水印文字。- Returns:
- Text 水印文字。
-
setText
public void setText(String Text)
Set 水印文字。- Parameters:
Text- 水印文字。
-
getFontSize
public Long getFontSize()
Get 文字大小- Returns:
- FontSize 文字大小
-
setFontSize
public void setFontSize(Long FontSize)
Set 文字大小- Parameters:
FontSize- 文字大小
-
getPosX
public Long getPosX()
Get 水印水平坐标,单位像素,默认:0。- Returns:
- PosX 水印水平坐标,单位像素,默认:0。
-
setPosX
public void setPosX(Long PosX)
Set 水印水平坐标,单位像素,默认:0。- Parameters:
PosX- 水印水平坐标,单位像素,默认:0。
-
getPosY
public Long getPosY()
Get 水印垂直坐标,单位像素,默认:0。- Returns:
- PosY 水印垂直坐标,单位像素,默认:0。
-
setPosY
public void setPosY(Long PosY)
Set 水印垂直坐标,单位像素,默认:0。- Parameters:
PosY- 水印垂直坐标,单位像素,默认:0。
-
getFontColor
public String getFontColor()
Get 文字颜色,格式为:#RRGGBBAA,默认值:#000000。- Returns:
- FontColor 文字颜色,格式为:#RRGGBBAA,默认值:#000000。
-
setFontColor
public void setFontColor(String FontColor)
Set 文字颜色,格式为:#RRGGBBAA,默认值:#000000。- Parameters:
FontColor- 文字颜色,格式为:#RRGGBBAA,默认值:#000000。
-
getFontAlpha
public Long getFontAlpha()
Get 文字透明度,范围:0~100,默认值:100。- Returns:
- FontAlpha 文字透明度,范围:0~100,默认值:100。
-
setFontAlpha
public void setFontAlpha(Long FontAlpha)
Set 文字透明度,范围:0~100,默认值:100。- Parameters:
FontAlpha- 文字透明度,范围:0~100,默认值:100。
-
getPosOriginType
public String getPosOriginType()
Get 指定坐标原点,可选值:- LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
- RightTop:PosXY 表示水印右上点到图片右上点的相对位置
- LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
- RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
- Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。- Returns:
- PosOriginType 指定坐标原点,可选值:
- LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
- RightTop:PosXY 表示水印右上点到图片右上点的相对位置
- LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
- RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
- Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。
-
setPosOriginType
public void setPosOriginType(String PosOriginType)
Set 指定坐标原点,可选值:- LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
- RightTop:PosXY 表示水印右上点到图片右上点的相对位置
- LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
- RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
- Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。- Parameters:
PosOriginType- 指定坐标原点,可选值:- LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
- RightTop:PosXY 表示水印右上点到图片右上点的相对位置
- LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
- RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
- Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。
-
getFont
public String getFont()
Get 字体,可选值:- SimHei
- SimKai
- Arial
默认 SimHei。- Returns:
- Font 字体,可选值:
- SimHei
- SimKai
- Arial
默认 SimHei。
-
setFont
public void setFont(String Font)
Set 字体,可选值:- SimHei
- SimKai
- Arial
默认 SimHei。- Parameters:
Font- 字体,可选值:- SimHei
- SimKai
- Arial
默认 SimHei。
-
-