javazoom.jlgui.player.amp.util

Class BMPLoader


public class BMPLoader
extends java.lang.Object

A decoder for Windows bitmap (.BMP) files. Compression not supported.

Constructor Summary

BMPLoader()

Method Summary

Image
getBMPImage(InputStream stream)
protected void
getBitmapHeader()
protected void
getFileHeader()
MemoryImageSource
getImageSource()
protected void
getPalette()
protected void
getPixelData()
void
read(InputStream is)
protected int
readInt()
protected int
readScanLine(byte[] b, int off, int len)
protected short
readShort()
protected void
unpack(byte[] rawData, int rawOffset, int bpp, byte[] byteData, int byteOffset, int w)
protected void
unpack(byte[] rawData, int rawOffset, int[] intData, int intOffset, int w)

Constructor Details

BMPLoader

public BMPLoader()

Method Details

getBMPImage

public Image getBMPImage(InputStream stream)
            throws Exception

getBitmapHeader

protected void getBitmapHeader()
            throws IOException

getFileHeader

protected void getFileHeader()
            throws IOException,
                   Exception

getImageSource

public MemoryImageSource getImageSource()

getPalette

protected void getPalette()
            throws IOException

getPixelData

protected void getPixelData()
            throws IOException,
                   Exception

read

public void read(InputStream is)
            throws IOException,
                   Exception

readInt

protected int readInt()
            throws IOException

readScanLine

protected int readScanLine(byte[] b,
                           int off,
                           int len)
            throws IOException

readShort

protected short readShort()
            throws IOException

unpack

protected void unpack(byte[] rawData,
                      int rawOffset,
                      int bpp,
                      byte[] byteData,
                      int byteOffset,
                      int w)
            throws Exception

unpack

protected void unpack(byte[] rawData,
                      int rawOffset,
                      int[] intData,
                      int intOffset,
                      int w)

JavaZOOM 1999-2006