|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jacorb.demo.notification.whiteboard.PixelImage
public class PixelImage
PixelImage.java A pixel-based image.
| Field Summary | |
|---|---|
protected int[] |
m_pixels
|
| Constructor Summary | |
|---|---|
PixelImage(int width,
int height)
The constructor. |
|
| Method Summary | |
|---|---|
void |
clearAll()
|
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. |
ImageProducer |
getProducer()
gets the ImageProducer for this image. |
void |
setPixel(int x,
int y,
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. |
void |
setPixelBuffer(int[] data)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int[] m_pixels
| 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,
Color color)
x - the pixels x value.y - the pixels y value.color - the pixels color.public ImageProducer getProducer()
public int[] getPixelBuffer()
public void setPixelBuffer(int[] data)
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||