public class BitmapHeader extends Object
Icon header. Describes the dimensions and properties of the icon.
Constructor and Description |
---|
BitmapHeader(AbstractDecoder pDec)
Create a header from decoded information.
|
Modifier and Type | Method and Description |
---|---|
long |
getBitmapSize()
Bitmap size in bytes.
|
int |
getBPP()
Bits per pixel.
|
int |
getColorCount()
The number of colors (based on BPP).
|
long |
getColorsImportant()
Number of important colors (0: All).
|
long |
getColorsUsed()
Number of colors used (often not set properly).
|
TypeCompression |
getCompression()
The bitmap compression type.
|
long |
getHeaderSize()
Header size (40 + 4 * color count, right?).
|
long |
getHeight()
Bitmap height.
|
int |
getPlanes()
Number of planes (always 1 in bitmaps, right?).
|
long |
getWidth()
Bitmap width.
|
long |
getXPixelsPerM()
I'm not sure what this is.
|
long |
getYPixelsPerM()
I'm not sure what this is.
|
String |
toString() |
public BitmapHeader(AbstractDecoder pDec) throws IOException
pDec
- The decoder.IOException
public int getBPP()
public long getColorsImportant()
public long getColorsUsed()
public TypeCompression getCompression()
TypeCompression
public long getHeight()
public long getBitmapSize()
public int getPlanes()
public long getHeaderSize()
public long getWidth()
public long getXPixelsPerM()
public long getYPixelsPerM()
public int getColorCount()
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)