Home » openjdk-7 » java » awt » image » [javadoc | source]
java.awt.image
public class: Kernel [javadoc | source]
java.lang.Object
   java.awt.image.Kernel

All Implemented Interfaces:
    Cloneable

The Kernel class defines a matrix that describes how a specified pixel and its surrounding pixels affect the value computed for the pixel's position in the output image of a filtering operation. The X origin and Y origin indicate the kernel matrix element that corresponds to the pixel position for which an output value is being computed.
Constructor:
 public Kernel(int width,
    int height,
    float[] data) 
Method from java.awt.image.Kernel Summary:
clone,   getHeight,   getKernelData,   getWidth,   getXOrigin,   getYOrigin
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.image.Kernel Detail:
 public Object clone() 
    Clones this object.
 public final int getHeight() 
    Returns the height of this Kernel.
 public final float[] getKernelData(float[] data) 
    Returns the kernel data in row major order. The data array is returned. If data is null, a new array is allocated.
 public final int getWidth() 
    Returns the width of this Kernel.
 public final int getXOrigin() 
    Returns the X origin of this Kernel.
 public final int getYOrigin() 
    Returns the Y origin of this Kernel.