public class RGBCompression extends BitmapCompression
| Constructor and Description |
|---|
RGBCompression() |
| Modifier and Type | Method and Description |
|---|---|
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
|
expand4BitTuple, expandMonocrome, getBpp, getHeight, getWidth, isTopDown, setBpp, setDimension, setTopDownpublic int[] decompress(InputStream in, GDIPalette palette) throws IOException
decompress in class BitmapCompressionIOExceptionpublic static String forceToSizeLeft(String str, int size, char padChar)
size - the wanted lengthpadChar - char to use for padding (must be of length()==1!)public void fillMono(int[] target,
InputStream in,
GDIPalette pal)
throws IOException
IOExceptionpublic void fill4Bit(int[] target,
InputStream in,
GDIPalette pal)
throws IOException
IOExceptionpublic void fill8Bit(int[] target,
InputStream in,
GDIPalette pal)
throws IOException
IOExceptionpublic void fill16Bit(int[] target,
InputStream in,
GDIPalette pal)
throws IOException
IOExceptionpublic void fill24Bit(int[] target,
InputStream in,
GDIPalette pal)
throws IOException
IOExceptionpublic void fill32Bit(int[] target,
InputStream in,
GDIPalette pal)
throws IOException
IOException