com.jme3.scene.plugins.blender.textures.io
Interface PixelInputOutput


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

read

void read(Image image,
          int layer,
          TexturePixel pixel,
          int index)
This method reads a pixel that starts at the given index.

Parameters:
image - the image we read pixel from
pixel - the pixel where the result is stored
index - the index where the pixel begins in the image data

read

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.

Parameters:
image - the image we read pixel from
pixel - the pixel where the result is stored
x - the X coordinate of the pixel
y - the Y coordinate of the pixel

write

void write(Image image,
           int layer,
           TexturePixel pixel,
           int index)
This method writes a pixel that starts at the given index.

Parameters:
image - the image we read pixel from
pixel - the pixel where the result is stored
index - the index where the pixel begins in the image data

write

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.

Parameters:
image - the image we read pixel from
pixel - the pixel where the result is stored
x - the X coordinate of the pixel
y - the Y coordinate of the pixel