Class RadianceAbstractFilter
- java.lang.Object
-
- org.pushingpixels.radiance.common.api.filter.RadianceAbstractFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp
public abstract class RadianceAbstractFilter extends java.lang.Object implements java.awt.image.BufferedImageOpProvides an abstract implementation of the
BufferedImageOpinterface. This class can be used to created new image filters based onBufferedImageOp.
-
-
Constructor Summary
Constructors Constructor Description RadianceAbstractFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagecreateCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel destCM)static java.awt.image.BufferedImagecreateCompatibleDestImageForFilter(java.awt.image.BufferedImage src, java.awt.image.ColorModel destCM)java.awt.geom.Rectangle2DgetBounds2D(java.awt.image.BufferedImage src)protected int[]getPixels(java.awt.image.BufferedImage img, int x, int y, int w, int h, int[] pixels)java.awt.geom.Point2DgetPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)java.awt.RenderingHintsgetRenderingHints()protected voidsetPixels(java.awt.image.BufferedImage img, int x, int y, int w, int h, int[] pixels)Writes a rectangular area of pixels in the destinationBufferedImage.
-
-
-
Method Detail
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
- Specified by:
getBounds2Din interfacejava.awt.image.BufferedImageOp
-
createCompatibleDestImageForFilter
public static java.awt.image.BufferedImage createCompatibleDestImageForFilter(java.awt.image.BufferedImage src, java.awt.image.ColorModel destCM)
-
createCompatibleDestImage
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel destCM)- Specified by:
createCompatibleDestImagein interfacejava.awt.image.BufferedImageOp
-
getPoint2D
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)- Specified by:
getPoint2Din interfacejava.awt.image.BufferedImageOp
-
getRenderingHints
public java.awt.RenderingHints getRenderingHints()
- Specified by:
getRenderingHintsin interfacejava.awt.image.BufferedImageOp
-
getPixels
protected int[] getPixels(java.awt.image.BufferedImage img, int x, int y, int w, int h, int[] pixels)
-
setPixels
protected void setPixels(java.awt.image.BufferedImage img, int x, int y, int w, int h, int[] pixels)Writes a rectangular area of pixels in the destination
BufferedImage. Calling this method on an image of type different fromBufferedImage.TYPE_INT_ARGBandBufferedImage.TYPE_INT_RGBwill unmanage the image.- Parameters:
img- the destination imagex- the x location at which to start storing pixelsy- the y location at which to start storing pixelsw- the width of the rectangle of pixels to storeh- the height of the rectangle of pixels to storepixels- an array of pixels, stored as integers- Throws:
java.lang.IllegalArgumentException- ispixelsis non-null and of length < w*h
-
-