|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwebplugin.aclib.image.ico.AbstractBitmap
webplugin.aclib.image.ico.AbstractBitmapIndexed
public abstract class AbstractBitmapIndexed
Parent class for indexed bitmaps (1, 4, and 8 bits per pixel). The value of a pixel refers to an entry in the color palette. The bitmap has a mask which is a 1 BPP bitmap specifiying whether a pixel is transparent or opaque.
| Field Summary | |
|---|---|
protected int[] |
_pixels
The pixel values. |
| Fields inherited from class webplugin.aclib.image.ico.AbstractBitmap |
|---|
_descriptor |
| Constructor Summary | |
|---|---|
AbstractBitmapIndexed(BitmapDescriptor pDescriptor)
Create a bitmap with a color table and a mask. |
|
| Method Summary | |
|---|---|
BufferedImage |
createImageIndexed()
|
BufferedImage |
createImageRGB()
Create an RGB image rendition of this bitmap. |
protected static int |
getBytesPerScanLine(int pWidth,
int pBPP)
Return bytes per scan line rounded up to the next 4 byte boundary. |
Color |
getColor(int pIndex)
Get the color for the specified color palette index. |
Color |
getColor(int pXPos,
int pYPos)
Get the color for the specified point. |
int |
getPaletteIndex(int pXPos,
int pYPos)
Index into the color palette for the specified point. |
(package private) void |
read(AbstractDecoder pDec)
Needed to be replaced for indexed images because they contain a color palette and a mask which needs to be read as well. |
(package private) abstract void |
readBitmap(AbstractDecoder pDec)
This functions is needed b/c all classes read the bitmap, but not always a color table and a mask. |
| Methods inherited from class webplugin.aclib.image.ico.AbstractBitmap |
|---|
getColorCount, getDescriptor, getHeight, getWidth, setDescriptor, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] _pixels
| Constructor Detail |
|---|
public AbstractBitmapIndexed(BitmapDescriptor pDescriptor)
pDescriptor - The descriptor.| Method Detail |
|---|
void read(AbstractDecoder pDec)
throws IOException
read in class AbstractBitmappDec - The decoder.
IOException
abstract void readBitmap(AbstractDecoder pDec)
throws IOException
pDec - The decoder.
IOException
protected static int getBytesPerScanLine(int pWidth,
int pBPP)
pWidth - The image width.pBPP - Bytes per pixel.
public BufferedImage createImageIndexed()
public BufferedImage createImageRGB()
AbstractBitmap
createImageRGB in class AbstractBitmap
public Color getColor(int pXPos,
int pYPos)
pXPos - The x position.pYPos - The y position.
public int getPaletteIndex(int pXPos,
int pYPos)
pXPos - The x position.pYPos - The y position.
public Color getColor(int pIndex)
pIndex - of the color requested.
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||