public class Pixel
extends java.lang.Object
| Constructor and Description |
|---|
Pixel(int red,
int green,
int blue)
Create a new Pixel object by specifying the levels of red, green, and blue
colors present.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Standard equals method.
|
int |
getBlue()
Returns the level of blue seen in the Pixel
|
int |
getGreen()
Returns the level of green seen in the Pixel
|
int |
getRed()
Returns the level of red seen in the Pixel
|
public Pixel(int red,
int green,
int blue)
red - level of red (0 to 255)green - level of green (0 to 255)blue - level of blue (0 to 255)public int getRed()
public int getGreen()
public int getBlue()
public boolean equals(java.lang.Object o)
equals in class java.lang.Object