visual.statik.sampled
Class BufferedImageOpFactory

java.lang.Object
  extended by visual.statik.sampled.BufferedImageOpFactory

public class BufferedImageOpFactory
extends java.lang.Object

A class that can be used to construct BufferedImageOp objects that can then be used to operate on static sampled visual content

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Method Summary
 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 Note: This method actually leaves all colors that are close to the specified color
 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 eveything 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFactory

public static BufferedImageOpFactory createFactory()
Create a BufferedImageOpFactory object


createBlurOp

public java.awt.image.ConvolveOp createBlurOp(int size)
Create a blur operation

Parameters:
size - The size of the convolution kernel

createBrightenOp

public java.awt.image.RescaleOp createBrightenOp()
Create a brighten operation


createDarkenOp

public java.awt.image.RescaleOp createDarkenOp()
Create a darken operation


createEdgeDetectionOp

public java.awt.image.ConvolveOp createEdgeDetectionOp(int size)
Create an edge detection operation

Parameters:
size - The size of the convolution kernel

createEmbossOp

public java.awt.image.ConvolveOp createEmbossOp(int size)
Create an embossing operation

Parameters:
size - The size of the convolution kernel

createGrayOp

public java.awt.image.ColorConvertOp createGrayOp()
Create an operation that converts to a gray colorspace


createGrayExceptOp

public GrayExceptOp createGrayExceptOp(int r,
                                       int g,
                                       int b)
Create an operation that converts "all colors but one" to gray Note: This method actually leaves all colors that are close to the specified color


createIdentityOp

public java.awt.image.ConvolveOp createIdentityOp(int size)
Create an operation that does not change the image (i.e., an identity)

Parameters:
size - The size of the convolution kernel

createMetalOp

public java.awt.image.RescaleOp createMetalOp()
Create a "metal" operation


createNegativeOp

public java.awt.image.LookupOp createNegativeOp()
Create a photo-negative operation


createNightVisionOp

public java.awt.image.LookupOp createNightVisionOp()
Create a night-vision operation (i.e., an operation that makes eveything appear green)


createRotateOp

public java.awt.image.AffineTransformOp createRotateOp(double theta,
                                                       double width,
                                                       double height)
Create a rotation operation that rotates an image around it's center

Parameters:
theta - The angle
width - The width of the image
height - The height of the image

createScaleOp

public java.awt.image.AffineTransformOp createScaleOp(double xScale,
                                                      double yScale)
Create a scaling operation

Parameters:
xScale - The horizontal scaling factor
yScale - The vertical scaling factor

createSharpenOp

public java.awt.image.ConvolveOp createSharpenOp(int size)
Create a sharpen operation

Parameters:
size - The size of the convolution kernel


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers