Interface Filter
- All Known Implementing Classes:
BoxBlurFilter,GrayscaleFilter
public interface Filter
A filter is a transformation that can be applied to an area of pixels.
This interface is tailored towards filters, but you can also use it for
non-filter transformations.
-
Method Summary
Modifier and TypeMethodDescriptionbyteapply(MapGraphics<?,?> graphics, int x, int y, int minX, int maxX, int minY, int maxY)Gets the transformed color for a specific pixelintpasses()The amount of times this filter should be applied
-
Method Details
-
apply
Gets the transformed color for a specific pixel- Parameters:
graphics- The parent graphicsx- The pixel xy- The pixel yminX- The min x of the areamaxX- The max x of the areaminY- The min y of the areamaxY- The max y of the area- Returns:
- The transformed color
-
passes
int passes()The amount of times this filter should be applied- Returns:
- The passes
-