|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coobird.thumbnailator.filters.Caption
public class Caption
An ImageFilter which will overlay a text caption to an image.
| Constructor Summary | |
|---|---|
Caption(String caption,
Font font,
Color c,
float alpha,
Position position,
int insets)
Instantiates a filter which adds a text caption to an image. |
|
Caption(String caption,
Font font,
Color c,
Position position,
int insets)
Instantiates a filter which adds a text caption 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 Caption(String caption,
Font font,
Color c,
float alpha,
Position position,
int insets)
caption - The text of the caption.font - The font of the caption.c - The color of the caption.alpha - The opacity level of caption.
The value should be between 0.0f and
1.0f, where 0.0f is completely
transparent, and 1.0f is completely opaque.
position - The position of the caption.insets - The inset size around the caption.
public Caption(String caption,
Font font,
Color c,
Position position,
int insets)
The opacity of the caption will be 100% opaque.
caption - The text of the caption.font - The font of the caption.c - The color of the caption.position - The position of the caption.insets - The inset size around the caption.| 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 | ||||||||