Class AbstractBufferedImageOp
java.lang.Object
org.jivesoftware.smackx.jingleold.mediaimpl.sshare.api.AbstractBufferedImageOp
- All Implemented Interfaces:
BufferedImageOp,Cloneable
- Direct Known Subclasses:
WholeImageFilter
A convenience class which implements those methods of BufferedImageOp which are rarely changed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()createCompatibleDestImage(BufferedImage src, ColorModel dstCM) getBounds2D(BufferedImage src) 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.voidsetRGB(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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.image.BufferedImageOp
filter
-
Constructor Details
-
AbstractBufferedImageOp
public AbstractBufferedImageOp()
-
-
Method Details
-
createCompatibleDestImage
- Specified by:
createCompatibleDestImagein interfaceBufferedImageOp
-
getBounds2D
- Specified by:
getBounds2Din interfaceBufferedImageOp
-
getPoint2D
- Specified by:
getPoint2Din interfaceBufferedImageOp
-
getRenderingHints
- Specified by:
getRenderingHintsin interfaceBufferedImageOp
-
getRGB
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
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:
-
clone
-