Class NegativeFilter


public class NegativeFilter extends Filter
This is a Filter that produces a negative version of the source.
Version:
1.0
Author:
Douglas Brown
  • Constructor Details

    • NegativeFilter

      public NegativeFilter()
      Constructs a NegativeFilter object.
  • Method Details

    • newInspector

      protected Filter.InspectorDlg newInspector()
      Specified by:
      newInspector in class Filter
    • initInspector

      protected Filter.InspectorDlg initInspector()
      Specified by:
      initInspector in class Filter
    • initializeSubclass

      protected void initializeSubclass()
      Creates the input and output images and ColorConvertOp.
      Specified by:
      initializeSubclass in class Filter
      Parameters:
      image - a new input image
    • setOutputPixels

      protected void setOutputPixels()
      Sets the output image pixels to the negative of the input pixels.
      Specified by:
      setOutputPixels in class Filter
      Parameters:
      input - the input image