net.aerith.misao.util
Class Pixel

java.lang.Object
  |
  +--net.aerith.misao.util.Pixel

public class Pixel
extends java.lang.Object

The Pixel represents a pixel on an image. It consists of (x,y) position and the value.


Field Summary
protected  float value
          The pixel value;
protected  int x
          The x position;
protected  int y
          The y position;
 
Constructor Summary
Pixel(int initial_x, int initial_y, double initial_value)
          Constructs a Pixel.
 
Method Summary
 double getValue()
          Gets the pixel value.
 int getX()
          Gets the x position.
 int getY()
          Gets the y position.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

protected int x
The x position;

y

protected int y
The y position;

value

protected float value
The pixel value;
Constructor Detail

Pixel

public Pixel(int initial_x,
             int initial_y,
             double initial_value)
Constructs a Pixel.
Method Detail

getX

public int getX()
Gets the x position.
Returns:
the x position.

getY

public int getY()
Gets the y position.
Returns:
the y position.

getValue

public double getValue()
Gets the pixel value.
Returns:
the pixel value.