public override void Read(BinaryReader reader) { bool isWithoutBitmap = (this.RecordSize == 24); this.RasterOperation = (TernaryRasterOperation)reader.ReadUInt32(); if (!isWithoutBitmap) { this.SrcHeight = reader.ReadInt16(); this.SrcWidth = reader.ReadInt16(); } this.YSrc = reader.ReadInt16(); this.XSrc = reader.ReadInt16(); if (isWithoutBitmap) { short dummy = reader.ReadInt16(); } this.DestHeight = reader.ReadInt16(); this.DestWidth = reader.ReadInt16(); this.YDest = reader.ReadInt16(); this.XDest = reader.ReadInt16(); if (!isWithoutBitmap) { this.Target = reader.ReadWmfObject <Bitmap16>(); } }
protected override void Dump(StringBuilder builder) { base.Dump(builder); Bitmap16.Dump(builder); builder.AppendLine("Bits: " + WmfHelper.DumpByteArray(this.Bits)); }