|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--PixelImage
PixelImage.java A pixel-based image.
Constructor Summary | |
PixelImage(int width,
int height)
The constructor. |
Method Summary | |
void |
clearAll()
sets all pixels to black. |
void |
drawLine(int x0,
int y0,
int x1,
int y1,
int red,
int green,
int blue)
draws a line in the image. |
int[] |
getPixelBuffer()
gets the pixel buffer of this image. |
java.awt.image.ImageProducer |
getProducer()
gets the ImageProducer for this image. |
void |
setPixel(int x,
int y,
java.awt.Color color)
sets a pixel to a specific color. |
void |
setPixel(int x,
int y,
int red,
int green,
int blue)
sets a pixel to a specific color. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PixelImage(int width, int height)
height
- the images height.width
- the images width.Method Detail |
public void setPixel(int x, int y, int red, int green, int blue)
x
- the pixels x value.y
- the pixels y value.red
- the pixels red value.green
- the pixels green value.blue
- the pixels blue value.public void setPixel(int x, int y, java.awt.Color color)
x
- the pixels x value.y
- the pixels y value.color
- the pixels color.public java.awt.image.ImageProducer getProducer()
public int[] getPixelBuffer()
public void drawLine(int x0, int y0, int x1, int y1, int red, int green, int blue)
public void clearAll()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |