public class MediaCuttingWatermarkText extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getFont()
Get 字体,可选值:
SimHei
SimKai
Arial
默认 SimHei。
|
Long |
getFontAlpha()
Get 文字透明度,范围:0~100,默认值:100。
|
String |
getFontColor()
Get 文字颜色,格式为:#RRGGBBAA,默认值:#000000。
|
Long |
getFontSize()
Get 文字大小
|
String |
getPosOriginType()
Get 指定坐标原点,可选值:
LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
RightTop:PosXY 表示水印右上点到图片右上点的相对位置
LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。
|
Long |
getPosX()
Get 水印水平坐标,单位像素,默认:0。
|
Long |
getPosY()
Get 水印垂直坐标,单位像素,默认:0。
|
String |
getText()
Get 水印文字。
|
void |
setFont(String Font)
Set 字体,可选值:
SimHei
SimKai
Arial
默认 SimHei。
|
void |
setFontAlpha(Long FontAlpha)
Set 文字透明度,范围:0~100,默认值:100。
|
void |
setFontColor(String FontColor)
Set 文字颜色,格式为:#RRGGBBAA,默认值:#000000。
|
void |
setFontSize(Long FontSize)
Set 文字大小
|
void |
setPosOriginType(String PosOriginType)
Set 指定坐标原点,可选值:
LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
RightTop:PosXY 表示水印右上点到图片右上点的相对位置
LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。
|
void |
setPosX(Long PosX)
Set 水印水平坐标,单位像素,默认:0。
|
void |
setPosY(Long PosY)
Set 水印垂直坐标,单位像素,默认:0。
|
void |
setText(String Text)
Set 水印文字。
|
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 MediaCuttingWatermarkText()
public MediaCuttingWatermarkText(MediaCuttingWatermarkText source)
public String getText()
public void setText(String Text)
Text
- 水印文字。public Long getFontSize()
public void setFontSize(Long FontSize)
FontSize
- 文字大小public Long getPosX()
public void setPosX(Long PosX)
PosX
- 水印水平坐标,单位像素,默认:0。public Long getPosY()
public void setPosY(Long PosY)
PosY
- 水印垂直坐标,单位像素,默认:0。public String getFontColor()
public void setFontColor(String FontColor)
FontColor
- 文字颜色,格式为:#RRGGBBAA,默认值:#000000。public Long getFontAlpha()
public void setFontAlpha(Long FontAlpha)
FontAlpha
- 文字透明度,范围:0~100,默认值:100。public String getPosOriginType()
public void setPosOriginType(String PosOriginType)
PosOriginType
- 指定坐标原点,可选值:
public String getFont()
public void setFont(String Font)
Font
- 字体,可选值:
Copyright © 2024. All rights reserved.