public class FiltersSequence extends java.lang.Object implements IApplyInPlace
FiltersSequence fs = new FiltersSequence();
fs.add(new Grayscale());
fs.add(new Blur());
fs.add(new Threshold(150));
fs.applyInPlace(fastBitmap);
| Constructor and Description |
|---|
FiltersSequence()
Initialize a new instance of the FiltersSequence class.
|
FiltersSequence(java.util.List<IApplyInPlace> sequence) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IApplyInPlace filter)
Add filter to be processed.
|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
void |
clear()
Eliminate all filters.
|
public FiltersSequence()
public FiltersSequence(java.util.List<IApplyInPlace> sequence)
public void add(IApplyInPlace filter)
filter - Filter.public void clear()
public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.