Example #1
0
        } /* LengthNextScanLine */

        override public void  SkipNextScanLine()
        {
            bool eol = false;

            ushort rec = GetNextRecord();

            while ((!eof) && (!eol))
            {
                Sipper2DecodeRec dr = decodeRecs[rec];
                if (dr.Eol())
                {
                    eol = true;
                }
                else
                {
                    rec = GetNextRecord();
                }
            }
        } /* SkipNextScanLine */
Example #2
0
        } /* SkipNextScanLine */

        override public void  ReadNextScanLine(byte[]  scanLine)
        {
            bool eol = false;
            int  idx = 0;

            ushort rec = GetNextRecord();

            while ((!eof) && (!eol))
            {
                Sipper2DecodeRec dr = decodeRecs[rec];
                dr.AddToScanLine(scanLine, ref idx);
                if (dr.Eol())
                {
                    eol = true;
                }
                else
                {
                    rec = GetNextRecord();
                }
            }
        } /* ReadNextScanLine */
Example #3
0
        } /* BuildDecodeRecs */

        override public int  LengthNextScanLine()
        {
            bool eol = false;

            int scanLineLen = 0;

            ushort rec = GetNextRecord();

            while ((!eof) && (!eol))
            {
                Sipper2DecodeRec dr = decodeRecs[rec];
                scanLineLen += dr.PixelSpaceNeeded();
                if (dr.Eol())
                {
                    eol = true;
                }
                else
                {
                    rec = GetNextRecord();
                }
            }

            return(scanLineLen);
        } /* LengthNextScanLine */