public class EnhancedWatermarkFilter extends Filter
Constructor and Description |
---|
EnhancedWatermarkFilter() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Double |
getBottom()
Distance from the bottom edge of the input video to the bottom edge of the watermark image.
|
Double |
getHeight()
Desired height of the watermark image, the unit of the parameter is specified separately by the parameter 'unit'.
|
String |
getImage()
URL of the file to be used as watermark image.
|
Double |
getLeft()
Distance from the left edge of the input video to the left edge of the watermark image.
|
Double |
getOpacity()
Opacity to apply on the watermark image.
|
Double |
getRight()
Distance from the right edge of the input video to the right edge of the watermark image .
|
Double |
getTop()
Distance from the top edge of the input video to the top edge of the watermark image.
|
PositionUnit |
getUnit()
Get unit
|
Double |
getWidth()
Desired width of the watermark image, the unit of the parameter is specified separately by the parameter 'unit'.
|
int |
hashCode() |
void |
setBottom(Double bottom)
Distance from the bottom edge of the input video to the bottom edge of the watermark image.
|
void |
setHeight(Double height)
Desired height of the watermark image, the unit of the parameter is specified separately by the parameter 'unit'.
|
void |
setImage(String image)
URL of the file to be used as watermark image.
|
void |
setLeft(Double left)
Distance from the left edge of the input video to the left edge of the watermark image.
|
void |
setOpacity(Double opacity)
Opacity to apply on the watermark image.
|
void |
setRight(Double right)
Distance from the right edge of the input video to the right edge of the watermark image .
|
void |
setTop(Double top)
Distance from the top edge of the input video to the top edge of the watermark image.
|
void |
setUnit(PositionUnit unit)
Set unit
|
void |
setWidth(Double width)
Desired width of the watermark image, the unit of the parameter is specified separately by the parameter 'unit'.
|
String |
toString() |
getCreatedAt, getCustomData, getDescription, getModifiedAt, getName, putCustomDataItem, setCustomData, setDescription, setName
getId
public String getImage()
public void setImage(String image)
image
- URL of the file to be used as watermark image. Supported image formats: PNG, JPEG, BMP, GIF (required)public Double getLeft()
public void setLeft(Double left)
left
- Distance from the left edge of the input video to the left edge of the watermark image. May not be set if 'right' is set.public Double getRight()
public void setRight(Double right)
right
- Distance from the right edge of the input video to the right edge of the watermark image . May not be set if 'left' is set.public Double getTop()
public void setTop(Double top)
top
- Distance from the top edge of the input video to the top edge of the watermark image. May not be set if 'bottom' is set.public Double getBottom()
public void setBottom(Double bottom)
bottom
- Distance from the bottom edge of the input video to the bottom edge of the watermark image. May not be set if 'top' is set.public PositionUnit getUnit()
public void setUnit(PositionUnit unit)
unit
- public Double getOpacity()
public void setOpacity(Double opacity)
opacity
- Opacity to apply on the watermark image. Valid values are from 0.0 (completely transparent) to 1.0 (not transparent at all)public Double getWidth()
public void setWidth(Double width)
width
- Desired width of the watermark image, the unit of the parameter is specified separately by the parameter 'unit'. If both width and height are set the watermark size is fixed. If only one is set the aspect ratio of the image will be used to rescale itpublic Double getHeight()
public void setHeight(Double height)
height
- Desired height of the watermark image, the unit of the parameter is specified separately by the parameter 'unit'. If both width and height are set the watermark size is fixed. If only one is set the aspect ratio of the image will be used to rescale itCopyright © 2021. All rights reserved.