org.jfree.pixie.wmf.bitmap
Class RGBCompression
java.lang.Object
org.jfree.pixie.wmf.bitmap.BitmapCompression
org.jfree.pixie.wmf.bitmap.RGBCompression
public class RGBCompression
- extends BitmapCompression
Method Summary |
int[] |
decompress(java.io.InputStream in,
GDIPalette palette)
|
void |
fill16Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
|
void |
fill24Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
|
void |
fill32Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
|
void |
fill4Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
|
void |
fill8Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
|
void |
fillMono(int[] target,
java.io.InputStream in,
GDIPalette pal)
|
static java.lang.String |
forceToSizeLeft(java.lang.String str,
int size,
char padChar)
Cut or padd the string to the given size |
protected int |
readInt(java.io.InputStream in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RGBCompression
public RGBCompression()
decompress
public int[] decompress(java.io.InputStream in,
GDIPalette palette)
throws java.io.IOException
- Specified by:
decompress
in class BitmapCompression
- Throws:
java.io.IOException
forceToSizeLeft
public static java.lang.String forceToSizeLeft(java.lang.String str,
int size,
char padChar)
- Cut or padd the string to the given size
- Parameters:
size
- the wanted lengthpadChar
- char to use for padding (must be of length()==1!)
- Returns:
- the string with correct lenght, padded with pad if necessary
fillMono
public void fillMono(int[] target,
java.io.InputStream in,
GDIPalette pal)
throws java.io.IOException
- Throws:
java.io.IOException
fill4Bit
public void fill4Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
throws java.io.IOException
- Throws:
java.io.IOException
fill8Bit
public void fill8Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
throws java.io.IOException
- Throws:
java.io.IOException
fill16Bit
public void fill16Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
throws java.io.IOException
- Throws:
java.io.IOException
fill24Bit
public void fill24Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
throws java.io.IOException
- Throws:
java.io.IOException
fill32Bit
public void fill32Bit(int[] target,
java.io.InputStream in,
GDIPalette pal)
throws java.io.IOException
- Throws:
java.io.IOException
readInt
protected int readInt(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException