CSJ2K.j2k.codestream.HeaderInfo.SIZ.getCompImgWidth C# (CSharp) Method

getCompImgWidth() public method

Width of the specified tile-component
public getCompImgWidth ( int c ) : int
c int Component index /// ///
return int
            public virtual int getCompImgWidth(int c)
            {
                if (compWidth == null)
                {
                    compWidth = new int[csiz];
                    for (int cc = 0; cc < csiz; cc++)
                    {
                        //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'"
                        compWidth[cc] = (int) (System.Math.Ceiling((xsiz) / (double) xrsiz[cc]) - System.Math.Ceiling(x0siz / (double) xrsiz[cc]));
                    }
                }
                return compWidth[c];
            }