Class BoxBlurFilter
java.lang.Object
dev.cerus.maps.api.graphics.filter.BoxBlurFilter
- All Implemented Interfaces:
Filter
Performs box blur on an area. Can be reused
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBoxBlurFilter(int passes, BoxBlurFilter.TransparencyHandling transparencyHandling)
-
Method Summary
Modifier and TypeMethodDescriptionbyte
apply(MapGraphics<?,?> graphics, int x, int y, int minX, int maxX, int minY, int maxY)
Gets the transformed color for a specific pixelint
passes()
The amount of times this filter should be applied
-
Constructor Details
-
BoxBlurFilter
public BoxBlurFilter() -
BoxBlurFilter
-
-
Method Details
-
apply
public byte apply(MapGraphics<?,?> graphics, int x, int y, int minX, int maxX, int minY, int maxY)Description copied from interface:Filter
Gets the transformed color for a specific pixel -
passes
public int passes()Description copied from interface:Filter
The amount of times this filter should be applied
-