public class WaterMarkChar extends AbstractModel
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 The background color.
|
String |
getChars()
Get The text.
|
String |
getFontColor()
Get The text color.
|
Long |
getFontSize()
Get The font size (pixels).
|
Long |
getHeight()
Get The watermark height (pixels).
|
Long |
getLeft()
Get The X coordinate of the text watermark from the top left.
|
Long |
getTop()
Get The Y coordinate of the text watermark from the top left.
|
Long |
getWidth()
Get The watermark width (pixels).
|
void |
setBackGroundColor(String BackGroundColor)
Set The background color.
|
void |
setChars(String Chars)
Set The text.
|
void |
setFontColor(String FontColor)
Set The text color.
|
void |
setFontSize(Long FontSize)
Set The font size (pixels).
|
void |
setHeight(Long Height)
Set The watermark height (pixels).
|
void |
setLeft(Long Left)
Set The X coordinate of the text watermark from the top left.
|
void |
setTop(Long Top)
Set The Y coordinate of the text watermark from the top left.
|
void |
setWidth(Long Width)
Set The watermark width (pixels).
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public WaterMarkChar()
public WaterMarkChar(WaterMarkChar source)
public Long getTop()
public void setTop(Long Top)
Top
- The Y coordinate of the text watermark from the top left.public Long getLeft()
public void setLeft(Long Left)
Left
- The X coordinate of the text watermark from the top left.public Long getWidth()
public void setWidth(Long Width)
Width
- The watermark width (pixels).public Long getHeight()
public void setHeight(Long Height)
Height
- The watermark height (pixels).public String getChars()
public void setChars(String Chars)
Chars
- The text.public Long getFontSize()
public void setFontSize(Long FontSize)
FontSize
- The font size (pixels). The default value is `14`.public String getFontColor()
public void setFontColor(String FontColor)
FontColor
- The text color. The default color is white.public String getBackGroundColor()
public void setBackGroundColor(String BackGroundColor)
BackGroundColor
- The background color. If this parameter is empty, the background will be transparent (default).Copyright © 2023. All rights reserved.