CSJ2K.j2k.ModuleSpec.ModuleSpec C# (CSharp) Метод

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

Constructs a 'ModuleSpec' object, initializing all the components and tiles to the 'SPEC_DEF' spec val type, for the specified number of components and tiles.
public ModuleSpec ( int nt, int nc, byte type ) : System
nt int The number of tiles /// ///
nc int The number of components /// ///
type byte the type of the specification module i.e. tile specific, /// component specific or both. /// ///
Результат System
        public ModuleSpec(int nt, int nc, byte type)
        {
            nTiles = nt;
            nComp = nc;
            specValType = new byte[nt][];
            for (int i = 0; i < nt; i++)
            {
                specValType[i] = new byte[nc];
            }
            switch (type)
            {

                case SPEC_TYPE_TILE:
                    specType = SPEC_TYPE_TILE;
                    break;

                case SPEC_TYPE_COMP:
                    specType = SPEC_TYPE_COMP;
                    break;

                case SPEC_TYPE_TILE_COMP:
                    specType = SPEC_TYPE_TILE_COMP;
                    break;
                }
        }