com.jhlabs.image
Class AbstractBufferedImageOp

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable
Direct Known Subclasses:
BicubicScaleFilter, BorderFilter, BoxBlurFilter, CompoundFilter, ConvolveFilter, CropFilter, FlipFilter, GlintFilter, GradientFilter, GradientWipeFilter, IteratedFilter, LensBlurFilter, MirrorFilter, MotionBlurFilter, MotionBlurOp, PointFilter, ScaleFilter, ShatterFilter, SmartBlurFilter, TileImageFilter, TransformFilter, VariableBlurFilter, WholeImageFilter

public abstract class AbstractBufferedImageOp
extends java.lang.Object
implements ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

A convenience class which implements those methods of BufferedImageOp which are rarely changed.


Constructor Summary
AbstractBufferedImageOp()
           
 
Method Summary
 java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
           
 java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
           
 java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
           
 java.awt.RenderingHints getRenderingHints()
           
 int[] getRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
          A convenience method for getting ARGB pixels from an image.
 java.awt.Image process(java.awt.Image image)
          a basic garbage in, garbage out processor.
 void setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
          A convenience method for setting ARGB pixels in an image.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.image.BufferedImageOp
filter
 

Constructor Detail

AbstractBufferedImageOp

public AbstractBufferedImageOp()
Method Detail

process

public java.awt.Image process(java.awt.Image image)
Description copied from interface: ImageProcessorInterface
a basic garbage in, garbage out processor.

Specified by:
process in interface ImageProcessorInterface
Parameters:
image - input image
Returns:
output image

createCompatibleDestImage

public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src,
                                                              java.awt.image.ColorModel dstCM)
Specified by:
createCompatibleDestImage in interface java.awt.image.BufferedImageOp

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
Specified by:
getBounds2D in interface java.awt.image.BufferedImageOp

getPoint2D

public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt,
                                        java.awt.geom.Point2D dstPt)
Specified by:
getPoint2D in interface java.awt.image.BufferedImageOp

getRenderingHints

public java.awt.RenderingHints getRenderingHints()
Specified by:
getRenderingHints in interface java.awt.image.BufferedImageOp

getRGB

public int[] getRGB(java.awt.image.BufferedImage image,
                    int x,
                    int y,
                    int width,
                    int height,
                    int[] pixels)
A convenience method for getting ARGB pixels from an image. This tries to avoid the performance penalty of BufferedImage.getRGB unmanaging the image.


setRGB

public void setRGB(java.awt.image.BufferedImage image,
                   int x,
                   int y,
                   int width,
                   int height,
                   int[] pixels)
A convenience method for setting ARGB pixels in an image. This tries to avoid the performance penalty of BufferedImage.setRGB unmanaging the image.