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); }
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); }
public override void ParseData(BinaryReader br) { m_vImageType = br.ReadByte(); m_vImage = new ScImage(); m_vImage.ParseImage(br, 0); }