railo.runtime.img.filter
Class AbstractBufferedImageOp

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
All Implemented Interfaces:
BufferedImageOp, Cloneable
Direct Known Subclasses:
ApplyMaskFilter, BicubicScaleFilter, BorderFilter, BoxBlurFilter, ChromaKeyFilter, CompositeFilter, CompoundFilter, ConvolveFilter, CropFilter, FeedbackFilter, FlipFilter, GlintFilter, GradientFilter, GradientWipeFilter, HalftoneFilter, InterpolateFilter, IteratedFilter, KeyFilter, LensBlurFilter, MirrorFilter, MotionBlurFilter, MotionBlurOp, PointFilter, RenderTextFilter, ScaleFilter, ScratchFilter, ShadowFilter, ShatterFilter, ShineFilter, SmartBlurFilter, TileImageFilter, TransformFilter, TransitionFilter, VariableBlurFilter, WholeImageFilter

public abstract class AbstractBufferedImageOp
extends Object
implements BufferedImageOp, Cloneable

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


Constructor Summary
AbstractBufferedImageOp()
           
 
Method Summary
 Object clone()
           
 BufferedImage createCompatibleDestImage(BufferedImage src, ColorModel dstCM)
           
 Rectangle2D getBounds2D(BufferedImage src)
           
 Point2D getPoint2D(Point2D srcPt, Point2D dstPt)
           
 RenderingHints getRenderingHints()
           
 int[] getRGB(BufferedImage image, int x, int y, int width, int height, int[] pixels)
          A convenience method for getting ARGB pixels from an image.
 void setRGB(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

createCompatibleDestImage

public BufferedImage createCompatibleDestImage(BufferedImage src,
                                               ColorModel dstCM)
Specified by:
createCompatibleDestImage in interface BufferedImageOp

getBounds2D

public Rectangle2D getBounds2D(BufferedImage src)
Specified by:
getBounds2D in interface BufferedImageOp

getPoint2D

public Point2D getPoint2D(Point2D srcPt,
                          Point2D dstPt)
Specified by:
getPoint2D in interface BufferedImageOp

getRenderingHints

public RenderingHints getRenderingHints()
Specified by:
getRenderingHints in interface BufferedImageOp

getRGB

public int[] getRGB(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.

Parameters:
image - a BufferedImage object
x - the left edge of the pixel block
y - the right edge of the pixel block
width - the width of the pixel arry
height - the height of the pixel arry
pixels - the array to hold the returned pixels. May be null.
Returns:
the pixels
See Also:
setRGB(java.awt.image.BufferedImage, int, int, int, int, int[])

setRGB

public void setRGB(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.

Parameters:
image - a BufferedImage object
x - the left edge of the pixel block
y - the right edge of the pixel block
width - the width of the pixel arry
height - the height of the pixel arry
pixels - the array of pixels to set
See Also:
getRGB(java.awt.image.BufferedImage, int, int, int, int, int[])

clone

public Object clone()
Overrides:
clone in class Object


Copyright © 2012 Railo