private TEigenschaften getnewEig(TQuadrat from, Point point) { TEigenschaften eig = from.getEigenschaften(); eig.pos1 = point; eig.pos2 = point; return(eig); }
private void writeQuadrat(BinaryWriter Writer, TQuadrat quadrat) { Writer.Write(3); Writer.Write(quadrat.Pos1.X); Writer.Write(quadrat.Pos1.Y); Writer.Write(quadrat.Pos2.X); Writer.Write(quadrat.Pos2.Y); TEigenschaften eig = quadrat.getEigenschaften(); Writer.Write(eig.StandartPinsel); Writer.Write(eig.StandartStift); Writer.Write(eig.StandartStiftDicke); Writer.Write(eig.BenutzerDicke); Writer.Write(BrushtoID(eig.BenutzerPinsel)); Writer.Write(BrushtoID(eig.BenutzerStift)); }