Example #1
0
        private TEigenschaften getnewEig(TKreis from, Point point)
        {
            TEigenschaften eig = from.getEigenschaften();

            eig.pos1 = point;
            eig.pos2 = point;
            return(eig);
        }
Example #2
0
        private void writeKreis(BinaryWriter Writer, TKreis kreis)
        {
            Writer.Write(6);
            Writer.Write(kreis.Pos1.X);
            Writer.Write(kreis.Pos1.Y);
            Writer.Write(kreis.Pos2.X);
            Writer.Write(kreis.Pos2.Y);

            TEigenschaften eig = kreis.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));
        }