gestalt.texture.bitmap
Class IntegerBitmap
java.lang.Object
gestalt.texture.bitmap.IntegerBitmap
- All Implemented Interfaces:
- Bitmap, java.lang.Cloneable
public class IntegerBitmap
- extends java.lang.Object
- implements Bitmap
|
Constructor Summary |
IntegerBitmap(int[] thePixels,
int theWidth,
int theHeight,
int theComponentOrder)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NUMBER_OF_PIXEL_COMPONENTS
public static final int NUMBER_OF_PIXEL_COMPONENTS
- See Also:
- Constant Field Values
TRANSFORM_VALUE
public static final float TRANSFORM_VALUE
- See Also:
- Constant Field Values
- To do:
- colorspace is 0...1 not 0...255?
if there is a need to change that TRANSFORM_VALUE
can be set to for example 1.
IntegerBitmap
public IntegerBitmap(int[] thePixels,
int theWidth,
int theHeight,
int theComponentOrder)
getDefaultImageBitmap
public static IntegerBitmap 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
setIntDataRef
public void setIntDataRef(int[] 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
getColor
public void getColor(int theColorIndex,
Color thePixel)
setColor
public void setColor(int theColorIndex,
Color thePixel)
setPixel
public void setPixel(int x,
int y,
Color thePixel)
- Specified by:
setPixel in interface Bitmap
getIntDataRef
public int[] getIntDataRef()
load
public static IntegerBitmap load(java.io.InputStream theStream)
duplicate
public IntegerBitmap duplicate()
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009