gestalt.texture.bitmap
Class IntegerBitmap

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

public class IntegerBitmap
extends java.lang.Object
implements Bitmap


Field Summary
static int NUMBER_OF_PIXEL_COMPONENTS
           
static float TRANSFORM_VALUE
           
 
Constructor Summary
IntegerBitmap(int[] thePixels, int theWidth, int theHeight, int theComponentOrder)
           
 
Method Summary
 IntegerBitmap duplicate()
           
 void getColor(int theColorIndex, Color thePixel)
           
 int getComponentOrder()
           
 java.lang.Object getDataRef()
           
static IntegerBitmap getDefaultImageBitmap(int theWidth, int theHeight)
           
 int getHeight()
           
 int[] getIntDataRef()
           
 Color getPixel(int x, int y)
           
 void getPixel(int x, int y, Color thePixel)
           
 int getProportionType()
           
 int getWidth()
           
static IntegerBitmap load(java.io.InputStream theStream)
           
 void setColor(int theColorIndex, Color thePixel)
           
 void setDataRef(java.lang.Object theDataRef)
           
 void setIntDataRef(int[] 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
 

Field Detail

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.
Constructor Detail

IntegerBitmap

public IntegerBitmap(int[] thePixels,
                     int theWidth,
                     int theHeight,
                     int theComponentOrder)
Method Detail

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