Class CompositeFilter

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

    public class CompositeFilter
    extends AbstractBufferedImageOp
    A filter which composites two images together with an optional transform.
    • Constructor Detail

      • CompositeFilter

        public CompositeFilter()
        Construct a CompositeFilter.
      • CompositeFilter

        public CompositeFilter​(java.awt.Composite composite)
        Construct a CompositeFilter.
        Parameters:
        composite - the composite to use
      • CompositeFilter

        public CompositeFilter​(java.awt.Composite composite,
                               java.awt.geom.AffineTransform transform)
        Construct a CompositeFilter.
        Parameters:
        composite - the composite to use
        transform - a transform for the composited image
    • Method Detail

      • setComposite

        public void setComposite​(java.awt.Composite composite)
        Set the composite.
        Parameters:
        composite - the composite to use
        See Also:
        getComposite()
      • setTransform

        public void setTransform​(java.awt.geom.AffineTransform transform)
        Set the transform.
        Parameters:
        transform - the transform to use
        See Also:
        getTransform()
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object