|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectapps.lightrays.gfxlib.Pixels
public class Pixels
The Class Pixels.
| Field Summary | |
|---|---|
int |
height
The height. |
int[] |
pixels
The pixels. |
int |
width
The width. |
| Constructor Summary | |
|---|---|
Pixels(int[] pixels,
int w,
int h)
Instantiates a new pixels. |
|
Pixels(int width,
int height)
Instantiates a new pixels. |
|
| Method Summary | |
|---|---|
int |
getHeight()
Gets the height. |
int |
getPixel(int x,
int y)
Gets the pixel. |
int[] |
getPixels()
Gets the pixels. |
java.awt.Dimension |
getSize()
Gets the size. |
int |
getWidth()
Gets the width. |
static int |
rgbToInt(int r,
int g,
int b)
Rgb to int. |
void |
setPixel(int x,
int y,
int c)
Sets the pixel. |
void |
setRGB(int x,
int y,
int r,
int g,
int b)
Sets the rgb. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int height
public int[] pixels
public int width
| Constructor Detail |
|---|
public Pixels(int width,
int height)
width - the widthheight - the height
public Pixels(int[] pixels,
int w,
int h)
pixels - the pixelsw - the wh - the h| Method Detail |
|---|
public static int rgbToInt(int r,
int g,
int b)
r - the rg - the gb - the b
public int getHeight()
public int getPixel(int x,
int y)
x - the xy - the y
public int[] getPixels()
public java.awt.Dimension getSize()
public int getWidth()
public void setPixel(int x,
int y,
int c)
x - the xy - the yc - the c
public void setRGB(int x,
int y,
int r,
int g,
int b)
x - the xy - the yr - the rg - the gb - the bpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||