gestalt.texture.bitmap
Class ByteBufferBitmap

java.lang.Object
  extended by gestalt.texture.bitmap.ByteBufferBitmap
All Implemented Interfaces:
Bitmap, java.lang.Cloneable

public class ByteBufferBitmap
extends java.lang.Object
implements Bitmap


Constructor Summary
ByteBufferBitmap(java.nio.ByteBuffer thePixels, int theWidth, int theHeight, int theMediaType)
           
 
Method Summary
 java.nio.ByteBuffer getByteBufferDataRef()
           
 int getComponentOrder()
           
 java.lang.Object getDataRef()
           
static ByteBufferBitmap getDefaultImageBitmap(int theWidth, int theHeight)
           
 int getHeight()
           
 Color getPixel(int x, int y)
           
 void getPixel(int x, int y, Color thePixel)
           
 int getProportionType()
           
 int getWidth()
           
static ByteBufferBitmap load(java.io.InputStream theStream)
           
 void setByteBufferDataRef(java.nio.ByteBuffer theDataRef)
           
 void setDataRef(java.lang.Object theDataRef)
           
 void setPixel(int x, int y, Color thePixel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteBufferBitmap

public ByteBufferBitmap(java.nio.ByteBuffer thePixels,
                        int theWidth,
                        int theHeight,
                        int theMediaType)
Method Detail

getDefaultImageBitmap

public static ByteBufferBitmap getDefaultImageBitmap(int theWidth,
                                                     int theHeight)

getWidth

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

getHeight

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

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

setByteBufferDataRef

public void setByteBufferDataRef(java.nio.ByteBuffer theDataRef)

getPixel

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

getPixel

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

setPixel

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

getByteBufferDataRef

public java.nio.ByteBuffer getByteBufferDataRef()

load

public static ByteBufferBitmap load(java.io.InputStream theStream)


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