public Shape(BinaryReader _reader, uint size, uint typeCode, uint version, uint instance) : base(_reader, size, typeCode, version, instance) { this.spid = this.Reader.ReadInt32(); UInt32 flag = this.Reader.ReadUInt32(); this.fGroup = Utils.BitmaskToBool(flag, 0x1); this.fChild = Utils.BitmaskToBool(flag, 0x2); this.fPatriarch = Utils.BitmaskToBool(flag, 0x4); this.fDeleted = Utils.BitmaskToBool(flag, 0x8); this.fOleShape = Utils.BitmaskToBool(flag, 0x10); this.fHaveMaster = Utils.BitmaskToBool(flag, 0x20); this.fFlipH = Utils.BitmaskToBool(flag, 0x40); this.fFlipV = Utils.BitmaskToBool(flag, 0x80); this.fConnector = Utils.BitmaskToBool(flag, 0x100); this.fHaveAnchor = Utils.BitmaskToBool(flag, 0x200); this.fBackground = Utils.BitmaskToBool(flag, 0x400); this.fHaveSpt = Utils.BitmaskToBool(flag, 0x800); this.ShapeType = ShapeType.GetShapeType(this.Instance); }