|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PixelInputOutput
Implemens read/write operations for images.
Method Summary | |
---|---|
void |
read(Image image,
int layer,
TexturePixel pixel,
int index)
This method reads a pixel that starts at the given index. |
void |
read(Image image,
int layer,
TexturePixel pixel,
int x,
int y)
This method reads a pixel that is located at the given position on the image. |
void |
write(Image image,
int layer,
TexturePixel pixel,
int index)
This method writes a pixel that starts at the given index. |
void |
write(Image image,
int layer,
TexturePixel pixel,
int x,
int y)
This method writes a pixel that is located at the given position on the image. |
Method Detail |
---|
void read(Image image, int layer, TexturePixel pixel, int index)
image
- the image we read pixel frompixel
- the pixel where the result is storedindex
- the index where the pixel begins in the image datavoid read(Image image, int layer, TexturePixel pixel, int x, int y)
image
- the image we read pixel frompixel
- the pixel where the result is storedx
- the X coordinate of the pixely
- the Y coordinate of the pixelvoid write(Image image, int layer, TexturePixel pixel, int index)
image
- the image we read pixel frompixel
- the pixel where the result is storedindex
- the index where the pixel begins in the image datavoid write(Image image, int layer, TexturePixel pixel, int x, int y)
image
- the image we read pixel frompixel
- the pixel where the result is storedx
- the X coordinate of the pixely
- the Y coordinate of the pixel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |