Esempio n. 1
0
 public JPXTile(int nComps)
 {
     m_tileCompCollection = new JPXTileComp[nComps];
     for (int i = 0; i < nComps; ++i)
     {
         m_tileCompCollection[i] = new JPXTileComp();
     }
     m_layer = m_precint = m_comp = m_res = 0;
 }
Esempio n. 2
0
        public Object Clone()
        {
            JPXTileComp tileComp = new JPXTileComp();

            tileComp.m_precision      = m_precision;
            tileComp.m_hSeparation    = m_hSeparation;
            tileComp.m_vSeparation    = m_vSeparation;
            tileComp.m_style          = m_style;
            tileComp.m_nDecomp        = m_nDecomp;
            tileComp.m_codeBlockW     = m_codeBlockW;
            tileComp.m_codeBlockH     = m_codeBlockH;
            tileComp.m_codeBlockStyle = m_codeBlockStyle;
            tileComp.m_transform      = m_transform;

            if (m_resLevelCollection != null)
            {
                tileComp.m_resLevelCollection = new JPXResLevel[m_resLevelCollection.Length];
                for (int i = 0; i < m_resLevelCollection.Length; ++i)
                {
                    tileComp.m_resLevelCollection[i] = (JPXResLevel)m_resLevelCollection[i].Clone();
                }
            }

            if (m_quantSteps != null)
            {
                tileComp.m_quantSteps = (int[])m_quantSteps.Clone();
            }
            if (m_data != null)
            {
                tileComp.m_data = (int[])m_data.Clone();
            }
            if (m_buf != null)
            {
                tileComp.m_buf = (int[])m_buf.Clone();
            }
            return(tileComp);
        }