Class InvertedMode

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

@LoadMe public class InvertedMode extends Object implements Filter
This filter realizes a filter which will invert all colors.
Author:
Dominik Fuchss
  • Constructor Details

    • InvertedMode

      public InvertedMode()
  • Method Details

    • 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