Class RGBCompression
- java.lang.Object
-
- org.pentaho.reporting.libraries.pixie.wmf.bitmap.BitmapCompression
-
- org.pentaho.reporting.libraries.pixie.wmf.bitmap.RGBCompression
-
public class RGBCompression extends BitmapCompression
-
-
Constructor Summary
Constructors Constructor Description RGBCompression()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 sizeprotected int
readInt(InputStream in)
-
Methods inherited from class org.pentaho.reporting.libraries.pixie.wmf.bitmap.BitmapCompression
expand4BitTuple, expandMonocrome, getBpp, getHeight, getWidth, isTopDown, setBpp, setDimension, setTopDown
-
-
-
-
Method Detail
-
decompress
public int[] decompress(InputStream in, GDIPalette palette) throws IOException
- Specified by:
decompress
in classBitmapCompression
- 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 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, InputStream in, GDIPalette pal) throws IOException
- Throws:
IOException
-
fill4Bit
public void fill4Bit(int[] target, InputStream in, GDIPalette pal) throws IOException
- Throws:
IOException
-
fill8Bit
public void fill8Bit(int[] target, InputStream in, GDIPalette pal) throws IOException
- Throws:
IOException
-
fill16Bit
public void fill16Bit(int[] target, InputStream in, GDIPalette pal) throws IOException
- Throws:
IOException
-
fill24Bit
public void fill24Bit(int[] target, InputStream in, GDIPalette pal) throws IOException
- Throws:
IOException
-
fill32Bit
public void fill32Bit(int[] target, InputStream in, GDIPalette pal) throws IOException
- Throws:
IOException
-
readInt
protected int readInt(InputStream in) throws IOException
- Throws:
IOException
-
-