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

            eig.pos1 = point;
            eig.pos2 = point2;
            eig.pos3 = point;
            return(eig);
        }
Example #2
0
        private void writeDreieck(BinaryWriter Writer, TDreieck dreieck)
        {
            Writer.Write(1);
            Writer.Write(dreieck.Pos1.X);
            Writer.Write(dreieck.Pos1.Y);
            Writer.Write(dreieck.Pos2.X);
            Writer.Write(dreieck.Pos2.Y);
            Writer.Write(dreieck.Pos3.X);
            Writer.Write(dreieck.Pos3.Y);

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