public class BufferedImageOpFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.awt.image.ConvolveOp |
createBlurOp(int size)
Create a blur operation.
|
java.awt.image.RescaleOp |
createBrightenOp()
Create a brighten operation.
|
java.awt.image.RescaleOp |
createDarkenOp()
Create a darken operation.
|
java.awt.image.ConvolveOp |
createEdgeDetectionOp(int size)
Create an edge detection operation.
|
java.awt.image.ConvolveOp |
createEmbossOp(int size)
Create an embossing operation.
|
static BufferedImageOpFactory |
createFactory()
Create a BufferedImageOpFactory object.
|
GrayExceptOp |
createGrayExceptOp(int r,
int g,
int b)
Create an operation that converts "all colors but one"
to gray.
|
java.awt.image.ColorConvertOp |
createGrayOp()
Create an operation that converts to a gray colorspace.
|
java.awt.image.ConvolveOp |
createIdentityOp(int size)
Create an operation that does not change the
image (i.e., an identity).
|
java.awt.image.RescaleOp |
createMetalOp()
Create a "metal" operation.
|
java.awt.image.LookupOp |
createNegativeOp()
Create a photo-negative operation.
|
java.awt.image.LookupOp |
createNightVisionOp()
Create a night-vision operation (i.e., an operation that
makes everything appear green).
|
java.awt.image.AffineTransformOp |
createRotateOp(double theta,
double width,
double height)
Create a rotation operation that rotates an image
around it's center.
|
java.awt.image.AffineTransformOp |
createScaleOp(double xScale,
double yScale)
Create a scaling operation.
|
java.awt.image.ConvolveOp |
createSharpenOp(int size)
Create a sharpen operation.
|
public static BufferedImageOpFactory createFactory()
public java.awt.image.ConvolveOp createBlurOp(int size)
size
- The size of the convolution kernelpublic java.awt.image.RescaleOp createBrightenOp()
public java.awt.image.RescaleOp createDarkenOp()
public java.awt.image.ConvolveOp createEdgeDetectionOp(int size)
size
- The size of the convolution kernelpublic java.awt.image.ConvolveOp createEmbossOp(int size)
size
- The size of the convolution kernelpublic java.awt.image.ColorConvertOp createGrayOp()
public GrayExceptOp createGrayExceptOp(int r, int g, int b)
Note: This method actually leaves all colors that are close to the specified color.
r
- The red component of the color to leaveg
- The green component of the color to leaveb
- The blue component of the color to leavepublic java.awt.image.ConvolveOp createIdentityOp(int size)
size
- The size of the convolution kernelpublic java.awt.image.RescaleOp createMetalOp()
public java.awt.image.LookupOp createNegativeOp()
public java.awt.image.LookupOp createNightVisionOp()
public java.awt.image.AffineTransformOp createRotateOp(double theta, double width, double height)
theta
- The anglewidth
- The width of the imageheight
- The height of the imagepublic java.awt.image.AffineTransformOp createScaleOp(double xScale, double yScale)
xScale
- The horizontal scaling factoryScale
- The vertical scaling factorpublic java.awt.image.ConvolveOp createSharpenOp(int size)
size
- The size of the convolution kernel