public CLIM(byte[] Data) { EndianBinaryReader er = new EndianBinaryReader(new MemoryStream(Data), Endianness.LittleEndian); er.BaseStream.Position = Data.Length - 0x28; try { Header = new CLIMHeader(er); Image = new imag(er); er.BaseStream.Position = 0; this.Data = er.ReadBytes((int)Image.DataLength); } finally { er.Close(); } }
public CLIM() { Data = new byte[0]; Header = new CLIMHeader(); Image = new imag(); }