Catalano.Imaging.Tools
Class FiltersSequence
- java.lang.Object
-
- Catalano.Imaging.Tools.FiltersSequence
-
- All Implemented Interfaces:
- IApplyInPlace
public class FiltersSequence extends java.lang.Object implements IApplyInPlace
Release several filters in the sequence.
Example:FiltersSequence fs = new FiltersSequence(); fs.add(new Grayscale()); fs.add(new Blur()); fs.add(new Threshold(150)); fs.applyInPlace(fastBitmap);
-
-
Constructor Summary
Constructors Constructor and Description FiltersSequence()Initialize a new instance of the FiltersSequence class.FiltersSequence(java.util.List<IApplyInPlace> sequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidadd(IApplyInPlace filter)Add filter to be processed.voidapplyInPlace(FastBitmap fastBitmap)Apply filter to an image.voidclear()Eliminate all filters.
-
-
-
Constructor Detail
-
FiltersSequence
public FiltersSequence()
Initialize a new instance of the FiltersSequence class.
-
FiltersSequence
public FiltersSequence(java.util.List<IApplyInPlace> sequence)
-
-
Method Detail
-
add
public void add(IApplyInPlace filter)
Add filter to be processed.- Parameters:
filter- Filter.
-
clear
public void clear()
Eliminate all filters.
-
applyInPlace
public void applyInPlace(FastBitmap fastBitmap)
Description copied from interface:IApplyInPlaceApply filter to an image.- Specified by:
applyInPlacein interfaceIApplyInPlace- Parameters:
fastBitmap- Image to be processed.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG