CSJ2K.j2k.codestream.reader.FileBitstreamReaderAgent.nextTile C# (CSharp) Method

nextTile() public method

Advances to the next tile, in standard scan-line order (by rows then columns). A NoNextElementException is thrown if the current tile is the last one (i.e. there is no next tile).
public nextTile ( ) : void
return void
        public override void nextTile()
        {
            if (ctX == ntX - 1 && ctY == ntY - 1)
            {
                // Already at last tile
                throw new NoNextElementException();
            }
            else if (ctX < ntX - 1)
            {
                // If not at end of current tile line
                setTile(ctX + 1, ctY);
            }
            else
            {
                // Go to first tile at next line
                setTile(0, ctY + 1);
            }
        }