Class BoxBlurFilter

java.lang.Object
dev.cerus.maps.api.graphics.filter.BoxBlurFilter
All Implemented Interfaces:
Filter

public class BoxBlurFilter extends Object implements Filter
Performs box blur on an area. Can be reused
  • Constructor Details

  • 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
      Specified by:
      apply in interface Filter
      Parameters:
      graphics - The parent graphics
      x - The pixel x
      y - The pixel y
      minX - The min x of the area
      maxX - The max x of the area
      minY - The min y of the area
      maxY - The max y of the area
      Returns:
      The transformed color
    • passes

      public int passes()
      Description copied from interface: Filter
      The amount of times this filter should be applied
      Specified by:
      passes in interface Filter
      Returns:
      The passes