CSJ2K.j2k.image.invcomptransf.InvCompTransf.getCompData C# (CSharp) Метод

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

Apply inverse component transformation associated with the current tile. If no component transformation has been requested by the user, data are not modified.

This method calls the getInternCompData() method, but respects the definitions of the getCompData() method defined in the BlkImgDataSrc interface.

public getCompData ( CSJ2K.j2k.image.DataBlk blk, int c ) : CSJ2K.j2k.image.DataBlk
blk CSJ2K.j2k.image.DataBlk Determines the rectangular area to return, and the /// data is returned in this object. /// ///
c int Index of the output component. /// ///
Результат CSJ2K.j2k.image.DataBlk
        public virtual DataBlk getCompData(DataBlk blk, int c)
        {
            // If requesting a component whose index is greater than 3 or there is
            // no transform return a copy of data (getInternCompData returns the
            // actual data in those cases)
            if (c >= 3 || transfType == NONE || noCompTransf)
            {
                return src.getCompData(blk, c);
            }
            else
            {
                // We can use getInternCompData (since data is a copy anyways)
                return getInternCompData(blk, c);
            }
        }