Exemple #1
0
        public override void ParseData(BinaryReader br)
        {
            m_vImageType = br.ReadByte();

            if (m_vScImageTypes.ContainsKey(m_vImageType))
            {
                m_vImage = (ScImage)Activator.CreateInstance(m_vScImageTypes[m_vImageType]);
            }
            else
            {
                m_vImage = new ScImage();
            }
            m_vImage.ParseImage(br);
        }
Exemple #2
0
        public void ParseData2(BinaryReader br, byte fileType)
        {
            m_vFileType  = fileType;
            m_vImageType = br.ReadByte();

            if (m_vScImageTypes.ContainsKey(m_vImageType))
            {
                m_vImage = (ScImage)Activator.CreateInstance(m_vScImageTypes[m_vImageType]);
            }
            else
            {
                m_vImage = new ScImage();
            }
            m_vImage.ParseImage(br, fileType);
        }
Exemple #3
0
 public override void ParseData(BinaryReader br)
 {
     m_vImageType = br.ReadByte();
     m_vImage     = new ScImage();
     m_vImage.ParseImage(br, 0);
 }