org.jfree.pixie.wmf.bitmap

Class BitmapReader


public class BitmapReader
extends java.lang.Object

Date: Mar 9, 2003 Time: 12:01:58 AM $Id: BitmapReader.java 3062 2007-07-30 17:22:18Z tmorgner $

Nested Class Summary

protected static class
BitmapReader.BitmapHeader

Method Summary

static double
constructDouble(byte[] in, int offset)
static int
constructInt(byte[] in, int offset)
static int
constructInt3(byte[] in, int offset)
static long
constructLong(byte[] in, int offset)
static short
constructShort(byte[] in, int offset)
static Image
load(String sdir)
load method - see read for details
static Image
read(FileInputStream fs)
protected static Image
readMap24(FileInputStream fs, BitmapHeader bh)
readMap24 internal routine to read the bytes in a 24 bit bitmap
protected static Image
readMap32(FileInputStream fs, BitmapHeader bh)
readMap24 internal routine to read the bytes in a 24 bit bitmap
protected static Image
readMap8(FileInputStream fs, BitmapHeader bh)
readMap8 internal routine to read the bytes in a 8 bit bitmap

Method Details

constructDouble

public static double constructDouble(byte[] in,
                                     int offset)

constructInt

public static int constructInt(byte[] in,
                               int offset)

constructInt3

public static int constructInt3(byte[] in,
                                int offset)

constructLong

public static long constructLong(byte[] in,
                                 int offset)

constructShort

public static short constructShort(byte[] in,
                                   int offset)

load

public static Image load(String sdir)
load method - see read for details
Parameters:
sdir - full path name
Returns:
Image Object, be sure to check for (Image)null !!!!

read

public static Image read(FileInputStream fs)

readMap24

protected static Image readMap24(FileInputStream fs,
                                 BitmapHeader bh)
            throws IOException
readMap24 internal routine to read the bytes in a 24 bit bitmap
Parameters:
fs - file stream
bh - header struct
Returns:
Image Object, be sure to check for (Image)null !!!!

readMap32

protected static Image readMap32(FileInputStream fs,
                                 BitmapHeader bh)
            throws IOException
readMap24 internal routine to read the bytes in a 24 bit bitmap
Parameters:
fs - file stream
bh - header struct
Returns:
Image Object, be sure to check for (Image)null !!!!

readMap8

protected static Image readMap8(FileInputStream fs,
                                BitmapHeader bh)
            throws IOException
readMap8 internal routine to read the bytes in a 8 bit bitmap
Parameters:
fs - file stream
bh - header struct
Returns:
Image Object, be sure to check for (Image)null !!!!