CSJ2K.j2k.image.forwcomptransf.ForwCompTransf.setTile C# (CSharp) Method

setTile() public method

Changes the current tile, given the new indexes. An IllegalArgumentException is thrown if the indexes do not correspond to a valid tile.

This default implementation changes the tile in the source and re-initializes properly component transformation variables..

public setTile ( int x, int y ) : void
x int The horizontal index of the tile. /// ///
y int The vertical index of the new tile. /// ///
return void
        public override void setTile(int x, int y)
        {
            src.setTile(x, y);
            tIdx = TileIdx; // index of the current tile

            // initializations
            System.String str = (System.String) cts.getTileDef(tIdx);
            if (str.Equals("none"))
            {
                transfType = NONE;
            }
            else if (str.Equals("rct"))
            {
                transfType = FORW_RCT;
                initForwRCT();
            }
            else if (str.Equals("ict"))
            {
                transfType = FORW_ICT;
                initForwICT();
            }
            else
            {
                throw new System.ArgumentException("Component transformation" + " not recognized");
            }
        }