com.jhlabs.image
Class AbstractBufferedImageOp
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
- BufferedImageOp, Cloneable
public abstract class AbstractBufferedImageOp
extends java.lang.Object
implements BufferedImageOp, Cloneable
A convenience class which implements those methods of BufferedImageOp which are rarely changed.
Object | clone()
|
BufferedImage | createCompatibleDestImage(BufferedImage src, ColorModel dstCM)
|
Rectangle2D | getBounds2D(BufferedImage src)
|
Point2D | getPoint2D(Point2D srcPt, Point2D dstPt)
|
int[] | getRGB(BufferedImage image, int x, int y, int width, int height, int[] pixels) - A convenience method for getting ARGB pixels from an image.
|
RenderingHints | getRenderingHints()
|
void | setRGB(BufferedImage image, int x, int y, int width, int height, int[] pixels) - A convenience method for setting ARGB pixels in an image.
|
clone
public Object clone()
createCompatibleDestImage
public BufferedImage createCompatibleDestImage(BufferedImage src,
ColorModel dstCM)
getBounds2D
public Rectangle2D getBounds2D(BufferedImage src)
getPoint2D
public Point2D getPoint2D(Point2D srcPt,
Point2D dstPt)
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.
image
- a BufferedImage objectx
- the left edge of the pixel blocky
- the right edge of the pixel blockwidth
- the width of the pixel arryheight
- the height of the pixel arrypixels
- the array to hold the returned pixels. May be null.
getRenderingHints
public RenderingHints getRenderingHints()
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.
image
- a BufferedImage objectx
- the left edge of the pixel blocky
- the right edge of the pixel blockwidth
- the width of the pixel arryheight
- the height of the pixel arrypixels
- the array of pixels to set