Package org.jdesktop.swingx.image
Class RadianceAbstractFilter
java.lang.Object
org.jdesktop.swingx.image.RadianceAbstractFilter
- All Implemented Interfaces:
BufferedImageOp
Provides an abstract implementation of the BufferedImageOp
interface. This class can be used to created new image filters based on
BufferedImageOp.
- Author:
- Romain Guy romain.guy@mac.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleDestImage(BufferedImage src, ColorModel destCM) static BufferedImagecreateCompatibleDestImageForFilter(BufferedImage src, ColorModel destCM) getBounds2D(BufferedImage src) protected int[]getPixels(BufferedImage img, int x, int y, int w, int h, int[] pixels) getPoint2D(Point2D srcPt, Point2D dstPt) protected voidsetPixels(BufferedImage img, int x, int y, int w, int h, int[] pixels) Writes a rectangular area of pixels in the destinationBufferedImage.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.image.BufferedImageOp
filter
-
Constructor Details
-
RadianceAbstractFilter
public RadianceAbstractFilter()
-
-
Method Details
-
getBounds2D
- Specified by:
getBounds2Din interfaceBufferedImageOp
-
createCompatibleDestImageForFilter
public static BufferedImage createCompatibleDestImageForFilter(BufferedImage src, ColorModel destCM) -
createCompatibleDestImage
- Specified by:
createCompatibleDestImagein interfaceBufferedImageOp
-
getPoint2D
- Specified by:
getPoint2Din interfaceBufferedImageOp
-
getRenderingHints
- Specified by:
getRenderingHintsin interfaceBufferedImageOp
-
getPixels
-
setPixels
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:
IllegalArgumentException- ispixelsis non-null and of length < w*h
-