Class GrayScaleMode

java.lang.Object
rekit.logic.filters.GrayScaleMode
All Implemented Interfaces:
Filter

@LoadMe public final class GrayScaleMode extends Object implements Filter
This filter realizes a filter which will convert all colors to grayscale.
Author:
Dominik Fuchss
  • Constructor Details

    • GrayScaleMode

      public GrayScaleMode()
  • Method Details

    • apply

      public AbstractImage apply(AbstractImage image)
      Description copied from interface: Filter
      Apply Filter.
      Specified by:
      apply in interface Filter
      Parameters:
      image - the original data
      Returns:
      the new Data
    • apply

      public RGBAColor apply(RGBAColor color)
      Description copied from interface: Filter
      Apply Filter.
      Specified by:
      apply in interface Filter
      Parameters:
      color - the original color
      Returns:
      the new color
    • isApplyPixel

      public boolean isApplyPixel()
      Description copied from interface: Filter
      This boolean indicates whether this filter can be applied pixel per pixel (fast).
      Specified by:
      isApplyPixel in interface Filter
      Returns:
      true if Filter.apply(RGBAColor) shall be used
    • isApplyImage

      public boolean isApplyImage()
      Description copied from interface: Filter
      This boolean indicates whether this filter can be applied pixel per pixel (slow).
      Specified by:
      isApplyImage in interface Filter
      Returns:
      true if Filter.apply(AbstractImage) shall be used