|
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.BitmapDescriptor
public class BitmapDescriptor
ICO file entry descriptor. Describes an embedded bitmap, and points to the header/bitmap pair. I found that the descriptor often "lies" about size, number of colors etc., hence the bitmap header should be used for reference.
| Constructor Summary | |
|---|---|
BitmapDescriptor(AbstractDecoder pDec)
Read the descriptor with the decoder (16 Bytes in total). |
|
| Method Summary | |
|---|---|
AbstractBitmap |
getBitmap()
Bitmap this descriptor refers to. |
int |
getBPP()
Bits per pixel. |
int |
getBPPRaw()
The original bits per pixel count. |
int |
getColorCount()
The actual color count. |
int |
getColorCountRaw()
The original color count (note "0" means "256"). |
BitmapHeader |
getHeader()
The header of the bitmap this descriptor refers to. |
int |
getHeight()
Bitmap height. |
Image |
getImageIndexed()
Image with indexed colors. |
Image |
getImageRGB()
Image with ARGB colors. |
BitmapMask |
getMask()
The mask of the bitmap this descriptor refers to. |
long |
getOffset()
Offset of header in ICO file. |
int |
getPlanes()
Number of planes ("1" for bitmaps, as far as I know). |
int |
getReserved()
Reserved value in the descriptor. |
long |
getSize()
Hm - the size of the header and bitmap maybe? |
int |
getWidth()
Bitmap width. |
(package private) void |
setBitmap(AbstractBitmap pBitmap)
|
(package private) void |
setHeader(BitmapHeader pHeader)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BitmapDescriptor(AbstractDecoder pDec)
throws IOException
pDec - The decoder.
IOException| Method Detail |
|---|
public String toString()
toString in class Objectpublic Image getImageIndexed()
getImageRGB().
public int getBPP()
getBPPRaw().
public int getBPPRaw()
getBPP().
public Image getImageRGB()
getImageIndexed().
public int getColorCountRaw()
getColorCount().
public int getColorCount()
getColorCountRaw().
public int getHeight()
public long getOffset()
public int getPlanes()
public int getReserved()
public long getSize()
public int getWidth()
public BitmapHeader getHeader()
void setHeader(BitmapHeader pHeader)
pHeader - public BitmapMask getMask()
public AbstractBitmap getBitmap()
void setBitmap(AbstractBitmap pBitmap)
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||