Package com.jhlabs.image
Class AbstractBufferedImageOp
- java.lang.Object
- 
- com.jhlabs.image.AbstractBufferedImageOp
 
- 
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp,- java.lang.Cloneable
 - Direct Known Subclasses:
- AnnotateFilter,- ApplyMaskFilter,- BicubicScaleFilter,- BlockFilter,- BorderFilter,- BoxBlurFilter,- ChromaKeyFilter,- ColorHalftoneFilter,- CompositeFilter,- CompoundFilter,- ComputerVision.Blur,- ComputerVision.Dilate,- ComputerVision.Erode,- ComputerVision.FindContours,- ComputerVision.FindEdges,- ComputerVision.GaussianBlur,- ComputerVision.Histogram,- ComputerVision.MakeBGRA,- ComputerVision.MakeGray,- ComputerVision.MakeHSV,- ComputerVision.MakeYUV,- ComputerVision.MedianBlur,- ConvolveFilter,- CropFilter,- DeinterlaceFilter,- DoGFilter,- FaceRecognizer.Eyes,- FaceRecognizer.Faces,- FeedbackFilter,- FlipFilter,- GlintFilter,- GradientFilter,- GradientWipeFilter,- HalftoneFilter,- InterpolateFilter,- IteratedFilter,- KeyFilter,- LaplaceFilter,- LensBlurFilter,- MirrorFilter,- MotionBlurFilter,- MotionBlurOp,- MotionDetectorFilter,- PointFilter,- RenderTextFilter,- ScaleFilter,- ScratchFilter,- ShadowFilter,- ShatterFilter,- ShineFilter,- SmartBlurFilter,- TileImageFilter,- TransformFilter,- TransitionFilter,- VariableBlurFilter,- WholeImageFilter
 
 public abstract class AbstractBufferedImageOp extends java.lang.Object implements java.awt.image.BufferedImageOp, java.lang.CloneableA convenience class which implements those methods of BufferedImageOp which are rarely changed.
- 
- 
Constructor SummaryConstructors Constructor Description AbstractBufferedImageOp()
 - 
Method SummaryAll Methods Static 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.static intstringToColor(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.
 
- 
- 
- 
Method Detail- 
createCompatibleDestImagepublic java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)- Specified by:
- createCompatibleDestImagein interface- java.awt.image.BufferedImageOp
 
 - 
getBounds2Dpublic java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src) - Specified by:
- getBounds2Din interface- java.awt.image.BufferedImageOp
 
 - 
getPoint2Dpublic java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)- Specified by:
- getPoint2Din interface- java.awt.image.BufferedImageOp
 
 - 
getRenderingHintspublic java.awt.RenderingHints getRenderingHints() - Specified by:
- getRenderingHintsin interface- java.awt.image.BufferedImageOp
 
 - 
getRGBpublic 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 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[])
 
 - 
setRGBpublic 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 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[])
 
 - 
clonepublic java.lang.Object clone() - Overrides:
- clonein class- java.lang.Object
 
 - 
stringToColorpublic 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. The string specification can be of the form of a hexadecimal number, e.g. "0xff0000" for red, a standard color name, e.g. "red", or a CSS-style color specification, e.g. "#FF0000" for red. The color names supported are black, blue, cyan, darkGray, gray, green, lightGray, magenta, orange, pink, red, white, and yellow.- Parameters:
- colorSpec- The string color specification.
- defaultColor- The default color to return if the string is malformed.
- Returns:
- An integer color representation.
 
 
- 
 
-