Class AbstractBufferedImageOp
- java.lang.Object
-
- org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.AbstractBufferedImageOp
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
- Direct Known Subclasses:
WholeImageFilter
public abstract class AbstractBufferedImageOp extends java.lang.Object implements java.awt.image.BufferedImageOp, java.lang.Cloneable
A convenience class which implements those methods of BufferedImageOp which are rarely changed.
-
-
Constructor Summary
Constructors Constructor Description AbstractBufferedImageOp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()java.awt.image.BufferedImagecreateCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)java.awt.geom.Rectangle2DgetBounds2D(java.awt.image.BufferedImage src)java.awt.geom.Point2DgetPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)java.awt.RenderingHintsgetRenderingHints()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.voidsetRGB(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.
-
-
-
Constructor Detail
-
AbstractBufferedImageOp
public AbstractBufferedImageOp()
-
-
Method Detail
-
createCompatibleDestImage
public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
- Specified by:
createCompatibleDestImagein interfacejava.awt.image.BufferedImageOp
-
getBounds2D
public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
- Specified by:
getBounds2Din interfacejava.awt.image.BufferedImageOp
-
getPoint2D
public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
- Specified by:
getPoint2Din interfacejava.awt.image.BufferedImageOp
-
getRenderingHints
public java.awt.RenderingHints getRenderingHints()
- Specified by:
getRenderingHintsin interfacejava.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.- Parameters:
image- a BufferedImage objectx- the left edge of the pixel blocky- the right edge of the pixel blockwidth- the width of the pixel arrayheight- the height of the pixel arraypixels- 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(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.- Parameters:
image- a BufferedImage objectx- the left edge of the pixel blocky- the right edge of the pixel blockwidth- the width of the pixel arrayheight- the height of the pixel arraypixels- the array of pixels to set- See Also:
getRGB(java.awt.image.BufferedImage, int, int, int, int, int[])
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object
-
-