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));
}