CSJ2K.j2k.image.invcomptransf.InvCompTransf.getInternCompData C# (CSharp) Method

getInternCompData() public method

Apply the inverse component transformation associated with the current tile. If no component transformation has been requested by the user, data are not modified. Else, appropriate method is called (invRCT or invICT).
public getInternCompData ( CSJ2K.j2k.image.DataBlk blk, int c ) : CSJ2K.j2k.image.DataBlk
blk CSJ2K.j2k.image.DataBlk Determines the rectangular area to return. /// ///
c int Index of the output component. /// ///
return CSJ2K.j2k.image.DataBlk
        public virtual DataBlk getInternCompData(DataBlk blk, int c)
        {
            // if specified in the command line that no component transform should
            // be made, return original data
            if (noCompTransf) return src.getInternCompData(blk, c);

            switch (transfType)
            {

                case NONE:
                    return src.getInternCompData(blk, c);

                case INV_RCT:
                    return invRCT(blk, c);

                case INV_ICT:
                    return invICT(blk, c);

                default:
                    throw new System.ArgumentException("Non JPEG 2000 part I" + " component transformation");

            }
        }