public class WatermarkOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Constants.WatermarkFitMode |
mode
The adaptation mode of the watermark.
|
private Rectangle |
positionInLandscapeMode
When the adaptation mode of the watermark is FIT_MODE_COVER_POSITION,
it is used to set the area of the watermark image in landscape mode.
|
private Rectangle |
positionInPortraitMode
When the adaptation mode of the watermark is FIT_MODE_COVER_POSITION,
it is used to set the area of the watermark image in portrait mode.
|
private boolean |
visibleInPreview
Whether or not the watermark image is visible in the local video preview.
|
private WatermarkRatio |
watermarkRatio
When the watermark adaptation mode is FIT_MODE_USE_IMAGE_RATIO,
this parameter is used to set the watermark coordinates.
|
private int |
zOrder
The z-order of the watermark image.
|
| Constructor and Description |
|---|
WatermarkOptions() |
| Modifier and Type | Method and Description |
|---|---|
Constants.WatermarkFitMode |
getMode() |
Rectangle |
getPositionInLandscapeMode() |
Rectangle |
getPositionInPortraitMode() |
WatermarkRatio |
getWatermarkRatio() |
int |
getZOrder() |
boolean |
isVisibleInPreview() |
void |
setMode(Constants.WatermarkFitMode mode) |
void |
setPositionInLandscapeMode(Rectangle positionInLandscapeMode) |
void |
setPositionInPortraitMode(Rectangle positionInPortraitMode) |
void |
setVisibleInPreview(boolean visibleInPreview) |
void |
setWatermarkRatio(WatermarkRatio watermarkRatio) |
void |
setZOrder(int zOrder) |
java.lang.String |
toString() |
private boolean visibleInPreview
private Rectangle positionInLandscapeMode
private Rectangle positionInPortraitMode
private WatermarkRatio watermarkRatio
private Constants.WatermarkFitMode mode
private int zOrder
public boolean isVisibleInPreview()
public void setVisibleInPreview(boolean visibleInPreview)
public Rectangle getPositionInLandscapeMode()
public void setPositionInLandscapeMode(Rectangle positionInLandscapeMode)
public Rectangle getPositionInPortraitMode()
public void setPositionInPortraitMode(Rectangle positionInPortraitMode)
public WatermarkRatio getWatermarkRatio()
public void setWatermarkRatio(WatermarkRatio watermarkRatio)
public Constants.WatermarkFitMode getMode()
public void setMode(Constants.WatermarkFitMode mode)
public int getZOrder()
public void setZOrder(int zOrder)
public java.lang.String toString()
toString in class java.lang.Object