|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--BMPData
Used by the codec to store BMP raster data. This class also contains some simple rip functions.
BMPEncoder
,
BMPDecoder
Method Summary | |
static int[] |
flipImageData(int[] values,
int width,
int height)
Flips image data between standard order (top-down) and BMP order (bottom-up). |
int[] |
getColPal()
Returns the palette color array of the BMP Raster. |
int |
getDataType()
Returns a value equal to the bits/pixel of the raster data. |
int |
getHeight()
Returns the height of the BMP Raster. |
int[] |
getPixelData()
Returns the pixel-data array of the BMP Raster. |
int |
getWidth()
Returns the width of the BMP Raster. |
static BMPData |
make(int[] pixdat,
int[] pal,
int width,
int height)
Creates a new BMPData object from user data. |
static BMPData |
rip1i(java.awt.Image src,
java.awt.Component comp)
Rips image data from a java.awt.Image object and creates a new 1bit BMPData object. |
static BMPData |
rip24(java.awt.Image src,
java.awt.Component comp)
Rips image data from a java.awt.Image object and creates a new 24bit BMPData object. |
static BMPData |
rip4i(java.awt.Image src,
java.awt.Component comp)
Rips image data from a java.awt.Image object and creates a new 4bit BMPData object. |
static BMPData |
rip8i(java.awt.Image src,
java.awt.Component comp)
Rips image data from a java.awt.Image object and creates a new 8bit BMPData object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public int getDataType()
public int[] getPixelData()
public int[] getColPal()
public int getHeight()
public int getWidth()
public static BMPData rip24(java.awt.Image src, java.awt.Component comp) throws BMPCodecException
public static BMPData rip8i(java.awt.Image src, java.awt.Component comp) throws BMPCodecException
public static BMPData rip4i(java.awt.Image src, java.awt.Component comp) throws BMPCodecException
public static BMPData rip1i(java.awt.Image src, java.awt.Component comp) throws BMPCodecException
public static BMPData make(int[] pixdat, int[] pal, int width, int height) throws BMPCodecException
flipImageData(int[],int,int)
public static int[] flipImageData(int[] values, int width, int height)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |