public class WaterMarkChar extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| WaterMarkChar() | 
| WaterMarkChar(WaterMarkChar 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 | getBackGroundColor()Get 水印文字的背景色,为空代表背景透明,默认为空 | 
| String | getChars()Get 水印文字的内容 | 
| String | getFont()Get 文字水印的字体,支持设置以下值:
1. | 
| String | getFontColor()Get 水印文字的颜色,默认白色 | 
| Long | getFontSize()Get 水印文字的大小,单位像素,默认14 | 
| Long | getHeight()Get 文字水印的高度,单位像素值 | 
| Long | getLeft()Get 文字水印的起始坐标X值,从左上角开始 | 
| Long | getTop()Get 文字水印的起始坐标Y值,从左上角开始 | 
| Long | getWidth()Get 文字水印的宽度,单位像素值 | 
| void | setBackGroundColor(String BackGroundColor)Set 水印文字的背景色,为空代表背景透明,默认为空 | 
| void | setChars(String Chars)Set 水印文字的内容 | 
| void | setFont(String Font)Set 文字水印的字体,支持设置以下值:
1. | 
| void | setFontColor(String FontColor)Set 水印文字的颜色,默认白色 | 
| void | setFontSize(Long FontSize)Set 水印文字的大小,单位像素,默认14 | 
| void | setHeight(Long Height)Set 文字水印的高度,单位像素值 | 
| void | setLeft(Long Left)Set 文字水印的起始坐标X值,从左上角开始 | 
| void | setTop(Long Top)Set 文字水印的起始坐标Y值,从左上角开始 | 
| void | setWidth(Long Width)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, toJsonStringpublic WaterMarkChar()
public WaterMarkChar(WaterMarkChar source)
public Long getTop()
public void setTop(Long Top)
Top - 文字水印的起始坐标Y值,从左上角开始public Long getLeft()
public void setLeft(Long Left)
Left - 文字水印的起始坐标X值,从左上角开始public Long getWidth()
public void setWidth(Long Width)
Width - 文字水印的宽度,单位像素值public Long getHeight()
public void setHeight(Long Height)
Height - 文字水印的高度,单位像素值public String getChars()
public void setChars(String Chars)
Chars - 水印文字的内容public Long getFontSize()
public void setFontSize(Long FontSize)
FontSize - 水印文字的大小,单位像素,默认14public String getFontColor()
public void setFontColor(String FontColor)
FontColor - 水印文字的颜色,默认白色public String getBackGroundColor()
public void setBackGroundColor(String BackGroundColor)
BackGroundColor - 水印文字的背景色,为空代表背景透明,默认为空public String getFont()
public void setFont(String Font)
Font - 文字水印的字体,支持设置以下值:
1. Tencent (默认)
2. SourceHanSansCopyright © 2025. All rights reserved.