gestalt.candidates.materialplugin
Class ByteBitmap3D

java.lang.Object
  extended by gestalt.candidates.materialplugin.ByteBitmap3D
All Implemented Interfaces:
Bitmap, java.lang.Cloneable

public class ByteBitmap3D
extends java.lang.Object
implements Bitmap

To do:
the pixel operations only work for BITMAP_COMPONENT_ORDER_RGBA

Constructor Summary
ByteBitmap3D(byte[] thePixels, int theWidth, int theHeight, int theDepth, int theComponentOrder)
           
 
Method Summary
 void copyByteBitmap(ByteBitmap theByteBitmap, int theLevel)
           
 byte[] getByteDataRef()
           
 int getComponentOrder()
           
 java.lang.Object getDataRef()
           
static ByteBitmap3D getDefaultImageBitmap(int theWidth, int theHeight, int theDepth)
           
static ByteBitmap3D getDefaultImageBitmap(int theWidth, int theHeight, int theDepth, int theComponentOrder)
           
 int getDepth()
           
 int getHeight()
           
 Color getPixel(int x, int y)
           
 void getPixel(int x, int y, Color thePixel)
           
 void getPixel(int x, int y, int z, Color thePixel)
           
 int getProportionType()
           
 int getWidth()
           
 void setByteDataRef(byte[] theDataRef)
           
 void setDataRef(java.lang.Object theDataRef)
           
 void setPixel(int x, int y, Color thePixel)
           
 void setPixel(int x, int y, int z, Color thePixel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBitmap3D

public ByteBitmap3D(byte[] thePixels,
                    int theWidth,
                    int theHeight,
                    int theDepth,
                    int theComponentOrder)
Method Detail

getDefaultImageBitmap

public static ByteBitmap3D getDefaultImageBitmap(int theWidth,
                                                 int theHeight,
                                                 int theDepth)

getDefaultImageBitmap

public static ByteBitmap3D getDefaultImageBitmap(int theWidth,
                                                 int theHeight,
                                                 int theDepth,
                                                 int theComponentOrder)

getWidth

public int getWidth()
Specified by:
getWidth in interface Bitmap

getHeight

public int getHeight()
Specified by:
getHeight in interface Bitmap

getDepth

public int getDepth()

getComponentOrder

public int getComponentOrder()
Specified by:
getComponentOrder in interface Bitmap

getProportionType

public int getProportionType()
Specified by:
getProportionType in interface Bitmap

getDataRef

public java.lang.Object getDataRef()
Specified by:
getDataRef in interface Bitmap

setDataRef

public void setDataRef(java.lang.Object theDataRef)
Specified by:
setDataRef in interface Bitmap

getByteDataRef

public byte[] getByteDataRef()

setByteDataRef

public void setByteDataRef(byte[] theDataRef)

copyByteBitmap

public void copyByteBitmap(ByteBitmap theByteBitmap,
                           int theLevel)

getPixel

public void getPixel(int x,
                     int y,
                     Color thePixel)
Specified by:
getPixel in interface Bitmap

getPixel

public Color getPixel(int x,
                      int y)
Specified by:
getPixel in interface Bitmap

setPixel

public void setPixel(int x,
                     int y,
                     Color thePixel)
Specified by:
setPixel in interface Bitmap

getPixel

public void getPixel(int x,
                     int y,
                     int z,
                     Color thePixel)

setPixel

public void setPixel(int x,
                     int y,
                     int z,
                     Color thePixel)


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009