gestalt.texture.bitmap
Class ByteBufferBitmap
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteBufferBitmap
public ByteBufferBitmap(java.nio.ByteBuffer thePixels,
int theWidth,
int theHeight,
int theMediaType)
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