Exemple #1
0
 public void MouseDown(PictureBox sheet, IBrush brush, IFill fill, MouseEventArgs e)
 {
     canvas.SaveToCache();
     cursorActive = true;
     x1           = e.X;
     y1           = e.Y;
     x2           = e.X;
     y2           = e.Y;
     canvas.WriteToPictureBox(sheet);
 }
Exemple #2
0
        // ================================================== Методы переключения режимов ==================================================

        private void растроваяГрафикаToolStripMenuItem_Click(object sender, EventArgs e) // Подготовка режима растровой графики
        {
            canvas = Canvas.GetCanvas;
            canvas.WriteToPictureBox(pictureBoxSheet);
            labelTool.Text = "   Кисть";
            tool           = new PenTool();
            showModeMenu();
        }
Exemple #3
0
 private void векторнаяГрафикаToolStripMenuItem_Click(object sender, EventArgs e) // Подготовка режима векторной графики
 {
     canvas = VectorCanvas.GetCanvas;
     canvas.WriteToPictureBox(pictureBoxSheet);
     labelTool.Text = "   Линия";
     tool           = null;
     showModeMenu();
 }