Class MyRGBFilter

  • All Implemented Interfaces:
    java.awt.image.ImageConsumer, java.lang.Cloneable

    public class MyRGBFilter
    extends java.awt.image.RGBImageFilter
    • Field Summary

      • Fields inherited from class java.awt.image.RGBImageFilter

        canFilterIndexColorModel, newmodel, origmodel
      • Fields inherited from class java.awt.image.ImageFilter

        consumer
      • Fields inherited from interface java.awt.image.ImageConsumer

        COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
    • Constructor Summary

      Constructors 
      Constructor Description
      MyRGBFilter()
      Creates a new instance of MyRGBFilter
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int filterRGB​(int x, int y, int pixel)  
      static void main​(java.lang.String[] args)  
      void setBottomC​(int bottomC)  
      void setImageHeight​(int imageHeight)  
      void setImwid​(int imwid)  
      void setS1​(int s1)  
      void setS2​(int s2)  
      void setTopC​(int topC)  
      • Methods inherited from class java.awt.image.RGBImageFilter

        filterIndexColorModel, filterRGBPixels, setColorModel, setPixels, setPixels, substituteColorModel
      • Methods inherited from class java.awt.image.ImageFilter

        clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setDimensions, setHints, setProperties
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MyRGBFilter

        public MyRGBFilter()
        Creates a new instance of MyRGBFilter
    • Method Detail

      • setS1

        public void setS1​(int s1)
      • setS2

        public void setS2​(int s2)
      • setImwid

        public void setImwid​(int imwid)
      • setBottomC

        public void setBottomC​(int bottomC)
      • setTopC

        public void setTopC​(int topC)
      • setImageHeight

        public void setImageHeight​(int imageHeight)
      • filterRGB

        public int filterRGB​(int x,
                             int y,
                             int pixel)
        Specified by:
        filterRGB in class java.awt.image.RGBImageFilter
      • main

        public static void main​(java.lang.String[] args)