CSJ2K.j2k.codestream.reader.BitstreamReaderAgent.getResULX C# (CSharp) Метод

getResULX() публичный Метод

Returns the horizontal coordinate of the upper-left corner of the specified resolution in the given component of the current tile.
public getResULX ( int c, int rl ) : int
c int The component index. /// ///
rl int The resolution level index. /// ///
Результат int
        public int getResULX(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 tx0 = (int) System.Math.Max(px + ctX * ntW, ax);
            //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 tcx0 = (int) System.Math.Ceiling(tx0 / (double) getCompSubsX(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(tcx0 / (double) (1 << dl));
        }