|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coobird.thumbnailator.filters.Pipeline
public final class Pipeline
An ImageFilter
which will apply multiple ImageFilter
s in a
specific order.
Constructor Summary | |
---|---|
Pipeline()
Instantiates a new Pipeline with no image filters to apply. |
|
Pipeline(ImageFilter... filters)
Instantiates a new Pipeline with an array of ImageFilter s
to apply. |
|
Pipeline(List<ImageFilter> filters)
Instantiates a new Pipeline with a list of ImageFilter s
to apply. |
Method Summary | |
---|---|
void |
add(ImageFilter filter)
Adds an ImageFilter to the pipeline. |
void |
addAll(List<ImageFilter> filters)
Adds a List of ImageFilter s to the pipeline. |
void |
addFirst(ImageFilter filter)
Adds an ImageFilter to the beginning of the pipeline. |
BufferedImage |
apply(BufferedImage img)
Applies a image filtering operation on an image. |
List<ImageFilter> |
getFilters()
Returns a list of ImageFilter s which will be applied by this
Pipeline . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pipeline()
Pipeline
with no image filters to apply.
public Pipeline(ImageFilter... filters)
Pipeline
with an array of ImageFilter
s
to apply.
filters
- An array of ImageFilter
s to apply.public Pipeline(List<ImageFilter> filters)
Pipeline
with a list of ImageFilter
s
to apply.
filters
- A list of ImageFilter
s to apply.Method Detail |
---|
public void add(ImageFilter filter)
ImageFilter
to the pipeline.
public void addFirst(ImageFilter filter)
ImageFilter
to the beginning of the pipeline.
public void addAll(List<ImageFilter> filters)
List
of ImageFilter
s to the pipeline.
filters
- A list of filters to add to the pipeline.public List<ImageFilter> getFilters()
ImageFilter
s which will be applied by this
Pipeline
.
public BufferedImage apply(BufferedImage img)
ImageFilter
apply
in interface ImageFilter
img
- The image to apply the filtering on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |