public abstract class Watermark
extends java.lang.Object
Watermark
object represents the properties of a watermark effect, namely, Location
or using top, left values.Location
, it is transformed to x,y using image height,width
values at the time of application of the watermark.Modifier and Type | Field and Description |
---|---|
static Location |
DEFAULT_LOCATION |
static float |
DEFAULT_OPACITY |
static double |
DEFAULT_ORIENTATION |
Modifier and Type | Method and Description |
---|---|
int |
getLeft() |
float |
getOpacity() |
double |
getOrientation() |
Location |
getPosition() |
int |
getTop() |
void |
setCoords(int imgWidth,
int imgHeight,
int wmWidth,
int wmHeight) |
void |
setLeft(int left) |
void |
setOpacity(float opacity) |
void |
setOrientation(int orientation) |
void |
setPosition(Location position) |
void |
setTop(int top) |
java.lang.String |
toString() |
public static final Location DEFAULT_LOCATION
public static final double DEFAULT_ORIENTATION
public static final float DEFAULT_OPACITY
public Location getPosition()
public void setPosition(Location position)
public int getTop()
public void setTop(int top)
public int getLeft()
public void setLeft(int left)
public double getOrientation()
public void setOrientation(int orientation)
public float getOpacity()
public void setOpacity(float opacity)
public void setCoords(int imgWidth, int imgHeight, int wmWidth, int wmHeight)
public java.lang.String toString()
toString
in class java.lang.Object
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"