org.jfree.pixie.wmf.bitmap

Class RGBCompression


public class RGBCompression
extends BitmapCompression

Method Summary

int[]
decompress(InputStream in, GDIPalette palette)
void
fill16Bit(int[] target, InputStream in, GDIPalette pal)
void
fill24Bit(int[] target, InputStream in, GDIPalette pal)
void
fill32Bit(int[] target, InputStream in, GDIPalette pal)
void
fill4Bit(int[] target, InputStream in, GDIPalette pal)
void
fill8Bit(int[] target, InputStream in, GDIPalette pal)
void
fillMono(int[] target, InputStream in, GDIPalette pal)
static String
forceToSizeLeft(String str, int size, char padChar)
Cut or padd the string to the given size
protected int
readInt(InputStream in)

Methods inherited from class org.jfree.pixie.wmf.bitmap.BitmapCompression

decompress, expand4BitTuple, expandMonocrome, getBpp, getHeight, getWidth, isTopDown, setBpp, setDimension, setTopDown

Method Details

decompress

public int[] decompress(InputStream in,
                        GDIPalette palette)
            throws IOException
Overrides:
decompress in interface BitmapCompression

fill16Bit

public void fill16Bit(int[] target,
                      InputStream in,
                      GDIPalette pal)
            throws IOException

fill24Bit

public void fill24Bit(int[] target,
                      InputStream in,
                      GDIPalette pal)
            throws IOException

fill32Bit

public void fill32Bit(int[] target,
                      InputStream in,
                      GDIPalette pal)
            throws IOException

fill4Bit

public void fill4Bit(int[] target,
                     InputStream in,
                     GDIPalette pal)
            throws IOException

fill8Bit

public void fill8Bit(int[] target,
                     InputStream in,
                     GDIPalette pal)
            throws IOException

fillMono

public void fillMono(int[] target,
                     InputStream in,
                     GDIPalette pal)
            throws IOException

forceToSizeLeft

public static String forceToSizeLeft(String str,
                                     int size,
                                     char padChar)
Cut or padd the string to the given size
Parameters:
size - the wanted length
padChar - char to use for padding (must be of length()==1!)
Returns:
the string with correct lenght, padded with pad if necessary

readInt

protected int readInt(InputStream in)
            throws IOException