public class PixelImage extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
m_pixels |
| Constructor and Description |
|---|
PixelImage(int width,
int height)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
public PixelImage(int width,
int height)
height - the images height.width - the images width.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()
Copyright © 2017 JacORB. All rights reserved.