java.lang.Object
org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.AbstractBufferedImageOp
org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.WholeImageFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable
Direct Known Subclasses:
QuantizeFilter

public abstract class WholeImageFilter extends AbstractBufferedImageOp
A filter which acts as a superclass for filters which need to have the whole image in memory to do their stuff.
  • Field Details

  • Constructor Details

  • Method Details

    • filter

    • transformSpace

      protected void transformSpace(Rectangle rect)
      Calculate output bounds for given input bounds.
      Parameters:
      rect - input and output rectangle
    • filterPixels

      protected abstract int[] filterPixels(int width, int height, int[] inPixels, Rectangle transformedSpace)
      Actually filter the pixels.
      Parameters:
      width - the image width
      height - the image height
      inPixels - the image pixels
      transformedSpace - the output bounds
      Returns:
      the output pixels