Package com.jhlabs.image
Class CompositeFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.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 Summary
Constructors Constructor Description CompositeFilter()
Construct a CompositeFilter.CompositeFilter(java.awt.Composite composite)
Construct a CompositeFilter.CompositeFilter(java.awt.Composite composite, java.awt.geom.AffineTransform transform)
Construct a CompositeFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
java.awt.Composite
getComposite()
Get the composite.java.awt.geom.AffineTransform
getTransform()
Get the transform.void
setComposite(java.awt.Composite composite)
Set the composite.void
setTransform(java.awt.geom.AffineTransform transform)
Set the transform.java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
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 usetransform
- 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()
-
getComposite
public java.awt.Composite getComposite()
Get the composite.- Returns:
- the composite to use
- See Also:
setComposite(java.awt.Composite)
-
setTransform
public void setTransform(java.awt.geom.AffineTransform transform)
Set the transform.- Parameters:
transform
- the transform to use- See Also:
getTransform()
-
getTransform
public java.awt.geom.AffineTransform getTransform()
Get the transform.- Returns:
- the transform to use
- See Also:
setTransform(java.awt.geom.AffineTransform)
-
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 classjava.lang.Object
-
-