public abstract class AbstractBufferedImageOp
extends java.lang.Object
implements java.awt.image.BufferedImageOp, java.lang.Cloneable
Constructor and Description |
---|
AbstractBufferedImageOp() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
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.
|
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.
|
static int |
stringToColor(java.lang.String colorSpec,
int defaultColor)
Convert the string color specification into an integer where bits 24-31
represent alpha, bits 16-23 represent red, bits 8-15 represent green,
and bits 0-7 represent blue.
|
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
createCompatibleDestImage
in interface java.awt.image.BufferedImageOp
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
getBounds2D
in interface java.awt.image.BufferedImageOp
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
getPoint2D
in interface java.awt.image.BufferedImageOp
public java.awt.RenderingHints getRenderingHints()
getRenderingHints
in interface java.awt.image.BufferedImageOp
public int[] getRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
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.setRGB(java.awt.image.BufferedImage, int, int, int, int, int[])
public void setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
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 setgetRGB(java.awt.image.BufferedImage, int, int, int, int, int[])
public java.lang.Object clone()
clone
in class java.lang.Object
public static int stringToColor(java.lang.String colorSpec, int defaultColor)
colorSpec
- The string color specification.defaultColor
- The default color to return if the string is malformed.