public class BitmapDescriptor extends Object
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 and Description |
---|
BitmapDescriptor(AbstractDecoder pDec)
Read the descriptor with the decoder (16 Bytes in total).
|
Modifier and Type | Method and Description |
---|---|
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() |
public BitmapDescriptor(AbstractDecoder pDec) throws IOException
pDec
- The decoder.IOException
public String toString()
public 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.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)