math.imageMath
Class ImageFunction2D
java.lang.Object
   math.imageMath.ImageFunction2D
math.imageMath.ImageFunction2D
- All Implemented Interfaces: 
- Function2D
- public class ImageFunction2D 
- extends java.lang.Object- implements Function2D
 
 
| Method Summary | 
|  float | evaluate(float x,
         float y)
 | 
|  int | getEdgeAction()
 | 
|  int | getHeight()
 | 
|  int[] | getPixels()
 | 
|  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.
 | 
|  int | getWidth()
 | 
|  void | init(int[] pixels,
     int width,
     int height,
     int edgeAction,
     boolean alpha)
 | 
|  void | setEdgeAction(int edgeAction)
 | 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
ZERO
public static final int ZERO
- See Also:
- Constant Field Values
CLAMP
public static final int CLAMP
- See Also:
- Constant Field Values
WRAP
public static final int WRAP
- See Also:
- Constant Field Values
ImageFunction2D
public ImageFunction2D(java.awt.image.BufferedImage image)
ImageFunction2D
public ImageFunction2D(java.awt.image.BufferedImage image,
                       boolean alpha)
ImageFunction2D
public ImageFunction2D(java.awt.image.BufferedImage image,
                       int edgeAction,
                       boolean alpha)
ImageFunction2D
public ImageFunction2D(int[] pixels,
                       int width,
                       int height,
                       int edgeAction,
                       boolean alpha)
ImageFunction2D
public ImageFunction2D(java.awt.Image image)
ImageFunction2D
public ImageFunction2D(java.awt.Image image,
                       int edgeAction,
                       boolean alpha)
getRGB
public 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.
 
- 
 
- 
 
init
public void init(int[] pixels,
                 int width,
                 int height,
                 int edgeAction,
                 boolean alpha)
- 
 
- 
 
evaluate
public float evaluate(float x,
                      float y)
- 
- Specified by:
- evaluatein interface- Function2D
 
- 
 
setEdgeAction
public void setEdgeAction(int edgeAction)
- 
 
- 
 
getEdgeAction
public int getEdgeAction()
- 
 
- 
 
getWidth
public int getWidth()
- 
 
- 
 
getHeight
public int getHeight()
- 
 
- 
 
getPixels
public int[] getPixels()
- 
 
-