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)voidfill16Bit(int[] target, InputStream in, GDIPalette pal)voidfill24Bit(int[] target, InputStream in, GDIPalette pal)voidfill32Bit(int[] target, InputStream in, GDIPalette pal)voidfill4Bit(int[] target, InputStream in, GDIPalette pal)voidfill8Bit(int[] target, InputStream in, GDIPalette pal)voidfillMono(int[] target, InputStream in, GDIPalette pal)static StringforceToSizeLeft(String str, int size, char padChar)Cut or padd the string to the given sizeprotected intreadInt(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:
 decompressin 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
 
 - 
 
 -