TV-Browser 2.7.5 API

webplugin.aclib.image.ico
Class BitmapHeader

java.lang.Object
  extended by webplugin.aclib.image.ico.BitmapHeader

public class BitmapHeader
extends Object

Icon header. Describes the dimensions and properties of the icon.

Author:
© Christian Treber, ct@ctreber.com

Constructor Summary
BitmapHeader(AbstractDecoder pDec)
          Create a header from decoded information.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BitmapHeader

public BitmapHeader(AbstractDecoder pDec)
             throws IOException
Create a header from decoded information.

Parameters:
pDec - The decoder.
Throws:
IOException
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getBPP

public int getBPP()
Bits per pixel.

Returns:
Bits per pixel.

getColorsImportant

public long getColorsImportant()
Number of important colors (0: All).

Returns:
Important colors.

getColorsUsed

public long getColorsUsed()
Number of colors used (often not set properly).

Returns:
Colors used.

getCompression

public TypeCompression getCompression()
The bitmap compression type.

Returns:
Compression type.
See Also:
TypeCompression

getHeight

public long getHeight()
Bitmap height. Note: It seems the mask gets reported as well, so divide this number by two.

Returns:
Height.

getBitmapSize

public long getBitmapSize()
Bitmap size in bytes.

Returns:
Bitmap size.

getPlanes

public int getPlanes()
Number of planes (always 1 in bitmaps, right?).

Returns:
Planes.

getHeaderSize

public long getHeaderSize()
Header size (40 + 4 * color count, right?).

Returns:
Hease size.

getWidth

public long getWidth()
Bitmap width.

Returns:
Width.

getXPixelsPerM

public long getXPixelsPerM()
I'm not sure what this is.

Returns:
???

getYPixelsPerM

public long getYPixelsPerM()
I'm not sure what this is.

Returns:
???

getColorCount

public int getColorCount()
The number of colors (based on BPP).

Returns:
Colors.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)