Пример #1
0
        private TEigenschaften getnewEig(TEllipse from, Point point)
        {
            TEigenschaften eig = from.getEigenschaften();

            eig.pos1 = point;
            eig.pos2 = point;
            return(eig);
        }
Пример #2
0
        protected override void secondpoint(TZeichnung zeichnung, Canvas canvas)
        {
            base.secondpoint(zeichnung, canvas);
            TEllipse l = this;

            TEllipse       rechteck = new TEllipse(canvas, base.FPos1);
            TEigenschaften neweig   = getnewEig(l, base.FPos1);

            MainWindow.TmpFigur = rechteck;

            MainWindow.modus  = MainWindow.TModus.Ellipse;
            MainWindow.status = MainWindow.TStatus.Linie2;
            ((TEllipse)MainWindow.TmpFigur).setEigenschaften(neweig);
        }
Пример #3
0
        private void writeEllipse(BinaryWriter Writer, TEllipse ellipse)
        {
            Writer.Write(5);
            Writer.Write(ellipse.Pos1.X);
            Writer.Write(ellipse.Pos1.Y);
            Writer.Write(ellipse.Pos2.X);
            Writer.Write(ellipse.Pos2.Y);

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