public override void ReadFromStream(Stream stream) { BinaryReader br = new BinaryReader(stream); SourceX = br.ReadInt32(); SourceY = br.ReadInt32(); SourceWidth = br.ReadInt32(); SourceHeight = br.ReadInt32(); ViewportWidth = br.ReadInt32(); ViewportHeight = br.ReadInt32(); Flags = (YkdResourceFlags)br.ReadInt32(); Unknown5 = br.ReadInt32(); UpperLeftColor = br.ReadInt32(); BottomLeftColor = br.ReadInt32(); UpperRightColor = br.ReadInt32(); BottomRightColor = br.ReadInt32(); }