CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getResULY C# (CSharp) Method

getResULY() public method

Returns the vertical coordinate of the upper-left corner of the specified component in the given component of the current tile.
public getResULY ( int c, int rl ) : int
c int The component index. /// ///
rl int The resolution level index. /// ///
return int
        public int getResULY(int c, int rl)
        {
            int dl = mdl[c] - rl;
            if (dl < 0)
            {
                throw new System.ArgumentException("Requested resolution level" + " is not available for, at " + "least, one component in " + "tile: " + ctX + "x" + ctY);
            }
            int ty0 = (int) System.Math.Max(py + ctY * ntH, ay);
            //UPGRADE_WARNING: Data types in Visual C# might be different.  Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
            int tcy0 = (int) System.Math.Ceiling(ty0 / (double) getCompSubsY(c));
            //UPGRADE_WARNING: Data types in Visual C# might be different.  Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'"
            return (int) System.Math.Ceiling(tcy0 / (double) (1 << dl));
        }