public class TextWatermark extends ImageWatermark
TextWatermark represents a string of text to be used to watermark an underlying image.| Modifier and Type | Field and Description |
|---|---|
static String |
COPYRIGHT |
DEFAULT_LOCATION, DEFAULT_OPACITY, DEFAULT_ORIENTATION| Constructor and Description |
|---|
TextWatermark(int top,
int left,
double orientation,
float opacity,
String text,
Font font) |
TextWatermark(int top,
int left,
String text,
Font font) |
TextWatermark(Location position,
double orientation,
float opacity,
String text,
Font font) |
TextWatermark(Location position,
String text,
Font font) |
TextWatermark(String text) |
TextWatermark(String text,
Font font) |
| Modifier and Type | Method and Description |
|---|---|
Font |
getFont() |
BufferedImage |
getImage()
Generates a transparent image representing the text of this watermark.
|
String |
getText() |
boolean |
isVertical() |
void |
setFont(Font font) |
void |
setText(String text) |
void |
setVertical(boolean vertical) |
String |
toString() |
setImagegetLeft, getOpacity, getOrientation, getPosition, getTop, setCoords, setLeft, setOpacity, setOrientation, setPosition, setToppublic static final String COPYRIGHT
public TextWatermark(String text)
public TextWatermark(Location position, double orientation, float opacity, String text, Font font)
public TextWatermark(int top,
int left,
double orientation,
float opacity,
String text,
Font font)
public String getText()
public void setText(String text)
public Font getFont()
public void setFont(Font font)
public BufferedImage getImage()
getImage in class ImageWatermarkBufferedImage object thus producedpublic boolean isVertical()
public void setVertical(boolean vertical)
Copyright © 2010 - 2020 Adobe. All Rights Reserved