public class MediaCuttingWatermarkImage extends AbstractModel
Constructor and Description |
---|
MediaCuttingWatermarkImage() |
MediaCuttingWatermarkImage(MediaCuttingWatermarkImage 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 |
getHeight()
Get 水印高度,单位像素,默认:0。
注意:对于宽高符合以下规则:
1、Width>0 且 Height>0,按指定宽高拉伸;
2、Width=0 且 Height>0,以Height为基准等比缩放;
3、Width>0 且 Height=0,以Width为基准等比缩放;
4、Width=0 且 Height=0,采用源的宽高。
|
String |
getPosOriginType()
Get 指定坐标原点,可选值:
LeftTop:PosXY 表示水印左上点到图片左上点的相对位置
RightTop:PosXY 表示水印右上点到图片右上点的相对位置
LeftBottom:PosXY 表示水印左下点到图片左下点的相对位置
RightBottom:PosXY 表示水印右下点到图片右下点的相对位置
Center:PosXY 表示水印中心点到图片中心点的相对位置
默认:LeftTop。
|
Long |
getPosX()
Get 水印水平坐标,单位像素,默认:0。
|
Long |
getPosY()
Get 水印垂直坐标,单位像素,默认:0。
|
String |
getSourceId()
Get 水印源的ID,对应SourceInfoSet内的源。
注意1:对应的 MediaSourceInfo.Type需要为Image。
注意2:对于动图,只取第一帧图像作为水印源。
|
Long |
getWidth()
Get 水印宽度,单位像素,默认:0。
|
void |
setHeight(Long Height)
Set 水印高度,单位像素,默认:0。
注意:对于宽高符合以下规则:
1、Width>0 且 Height>0,按指定宽高拉伸;
2、Width=0 且 Height>0,以Height为基准等比缩放;
3、Width>0 且 Height=0,以Width为基准等比缩放;
4、Width=0 且 Height=0,采用源的宽高。
|
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 |
setSourceId(String SourceId)
Set 水印源的ID,对应SourceInfoSet内的源。
注意1:对应的 MediaSourceInfo.Type需要为Image。
注意2:对于动图,只取第一帧图像作为水印源。
|
void |
setWidth(Long Width)
Set 水印宽度,单位像素,默认:0。
|
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 MediaCuttingWatermarkImage()
public MediaCuttingWatermarkImage(MediaCuttingWatermarkImage source)
public String getSourceId()
public void setSourceId(String SourceId)
SourceId
- 水印源的ID,对应SourceInfoSet内的源。
注意1:对应的 MediaSourceInfo.Type需要为Image。
注意2:对于动图,只取第一帧图像作为水印源。public Long getPosX()
public void setPosX(Long PosX)
PosX
- 水印水平坐标,单位像素,默认:0。public Long getPosY()
public void setPosY(Long PosY)
PosY
- 水印垂直坐标,单位像素,默认:0。public Long getWidth()
public void setWidth(Long Width)
Width
- 水印宽度,单位像素,默认:0。public Long getHeight()
public void setHeight(Long Height)
Height
- 水印高度,单位像素,默认:0。
注意:对于宽高符合以下规则:
1、Width>0 且 Height>0,按指定宽高拉伸;
2、Width=0 且 Height>0,以Height为基准等比缩放;
3、Width>0 且 Height=0,以Width为基准等比缩放;
4、Width=0 且 Height=0,采用源的宽高。public String getPosOriginType()
public void setPosOriginType(String PosOriginType)
PosOriginType
- 指定坐标原点,可选值:
Copyright © 2022. All rights reserved.