Class PCLGenerator.ColorEncoder

  • Enclosing class:
    PCLGenerator

    private class PCLGenerator.ColorEncoder
    extends java.lang.Object
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • ColorEncoder

        public ColorEncoder​(java.awt.image.RenderedImage img)
    • 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