Package org.apache.fop.render.pcl
Class PCLGenerator.ColorEncoder
- java.lang.Object
-
- org.apache.fop.render.pcl.PCLGenerator.ColorEncoder
-
- Enclosing class:
- PCLGenerator
private class PCLGenerator.ColorEncoder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) byte[]
buff1
(package private) byte[]
buff2
private int
bytewidth
(package private) int
compression
(package private) byte[]
current
private int
currentIndex
(package private) byte[]
encodedDelta
(package private) byte[]
encodedRun
(package private) byte[]
encodedTagged
private byte
ib
private int
imgw
private int
len
(package private) byte[]
seed
(package private) int
seedLen
private int
shiftBit
private int
whiteLines
(package private) byte[]
zeros
-
Constructor Summary
Constructors Constructor Description ColorEncoder(java.awt.image.RenderedImage img)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add8Bits(byte b)
void
addBit(boolean bit)
private int
deltaCompression(byte[] seed, byte[] buff, int len)
void
endLine()
private int
runCompression(byte[] buff, int len)
private int
tiffCompression(byte[] encodedTagged, int len)
-
-
-
Field Detail
-
imgw
private int imgw
-
bytewidth
private int bytewidth
-
ib
private byte ib
-
currentIndex
private int currentIndex
-
len
private int len
-
shiftBit
private int shiftBit
-
whiteLines
private int whiteLines
-
zeros
final byte[] zeros
-
buff1
final byte[] buff1
-
buff2
final byte[] buff2
-
encodedRun
final byte[] encodedRun
-
encodedTagged
final byte[] encodedTagged
-
encodedDelta
final byte[] encodedDelta
-
seed
byte[] seed
-
current
byte[] current
-
compression
int compression
-
seedLen
int seedLen
-
-
Method Detail
-
runCompression
private int runCompression(byte[] buff, int len)
-
deltaCompression
private int deltaCompression(byte[] seed, byte[] buff, int len)
-
tiffCompression
private int tiffCompression(byte[] encodedTagged, int len)
-
addBit
public void addBit(boolean bit)
-
add8Bits
public void add8Bits(byte b)
-
endLine
public void endLine() throws java.io.IOException
- Throws:
java.io.IOException
-
-