net.jot.image
Class JOTAbstractPixel
java.lang.Object
net.jot.image.JOTAbstractPixel
public class JOTAbstractPixel
- extends java.lang.Object
Represent the (color) data for a pixel (RGBA)
- Author:
- thibautc
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
JOTAbstractPixel
public JOTAbstractPixel(int red,
int green,
int blue,
int alpha)
getAlpha
public int getAlpha()
getBlue
public int getBlue()
getGreen
public int getGreen()
getRed
public int getRed()
setAlpha
public void setAlpha(int alpha)
setBlue
public void setBlue(int blue)
setGreen
public void setGreen(int green)
setRed
public void setRed(int red)
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object comp)
- Compares two pixels (macthing color)
- Overrides:
equals in class java.lang.Object
- Parameters:
comp -
- Returns: