|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.filters.Watermark
public class Watermark
This class applies a watermark to an image.
| Constructor Summary | |
|---|---|
Watermark(Position position,
BufferedImage watermarkImg,
float opacity)
Instantiates a filter which applies a watermark to an image. |
|
Watermark(Position position,
BufferedImage watermarkImg,
float opacity,
int insets)
Instantiates a filter which applies a watermark to an image. |
|
| Method Summary | |
|---|---|
BufferedImage |
apply(BufferedImage img)
Applies a image filtering operation on an image. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Watermark(Position position,
BufferedImage watermarkImg,
float opacity,
int insets)
position - The position of the watermark.watermarkImg - The watermark image.opacity - The opacity of the watermark.
The value should be between 0.0f and
1.0f, where 0.0f is completely
transparent, and 1.0f is completely
opaque.
insets - Inset size around the watermark.
Cannot be negative.
public Watermark(Position position,
BufferedImage watermarkImg,
float opacity)
position - The position of the watermark.watermarkImg - The watermark image.opacity - The opacity of the watermark.
The value should be between 0.0f and
1.0f, where 0.0f is completely
transparent, and 1.0f is completely
opaque.
| Method Detail |
|---|
public BufferedImage apply(BufferedImage img)
ImageFilter
apply in interface ImageFilterimg - The image to apply the filtering on.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||