CSJ2K.j2k.IntegerSpec.getMaxInComp C# (CSharp) Method

getMaxInComp() public method

Gets the maximum value of each tile for specified component
public getMaxInComp ( int c ) : int
c int The component index /// ///
return int
        public virtual int getMaxInComp(int c)
        {
            int max = 0;
            int tmp;

            for (int t = 0; t < nTiles; t++)
            {
                tmp = ((System.Int32) getSpec(t, c));
                if (max < tmp)
                    max = tmp;
            }

            return max;
        }