• 大小: 231KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-06
  • 语言: C#
  • 标签: c#  GDI+  矢量图  

资源简介

C#中GDI+实现简单二维矢量图编辑器源代码

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
    public partial class Anteprima : Form
    {
        public Anteprima()
        {
            InitializeComponent();
        }

        private void toolStripButton1_Click_1(object sender EventArgs e)
        {
            this.Close();
        }

        private void toolStripButton2_Click(object sender EventArgs e)
        {
            this.docToPrint.Print();
        }

        private void Anteprima_Load(object sender EventArgs e)
        {

        }

        private void Anteprima_Resize(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Width = this.Width - 10;
            this.PrintPreviewControl1.Height = this.Height - this.toolStrip1.Height - 37;

        }

        private void toolStripMenuItem2_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem2.Text) / 100;
        }

        private void toolStripMenuItem3_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem3.Text) / 100; 
        }

        private void toolStripMenuItem4_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem4.Text) / 100; 
        }

        private void toolStripMenuItem5_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem5.Text) / 100; 
        }

        private void toolStripMenuItem6_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem6.Text) / 100; 
        }

        private void toolStripMenuItem7_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem7.Text) / 100; 
        }

        private void toolStripMenuItem8_Click(object sender EventArgs e)
        {
            this.PrintPreviewControl1.Zoom = (float)System.Convert.ToDouble(toolStripMenuItem8.Text) / 100; 
        }

        private void PrintPreviewControl1_MouseMove(object sender MouseEventArgs e)
        {
           
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2007-06-13 09:25  source\
     目录           0  2007-06-13 09:26  source\WindowsApplication1\
     目录           0  2007-06-13 09:26  source\WindowsApplication1\Properties\
     文件        5612  2007-05-02 14:08  source\WindowsApplication1\Properties\Resources.resx
     文件        2863  2007-05-16 08:59  source\WindowsApplication1\Properties\Resources.Designer.cs
     文件         249  2007-05-02 14:08  source\WindowsApplication1\Properties\Settings.settings
     文件        1098  2007-05-16 08:59  source\WindowsApplication1\Properties\Settings.Designer.cs
     文件        1299  2007-06-01 11:03  source\WindowsApplication1\Properties\AssemblyInfo.cs
     目录           0  2007-06-13 09:26  source\WindowsApplication1\bin\
     目录           0  2007-06-13 09:26  source\WindowsApplication1\bin\Release\
     文件        5178  2007-11-20 11:18  source\WindowsApplication1\Form1.Designer.cs
     文件         486  2007-05-02 14:08  source\WindowsApplication1\Program.cs
     文件        6190  2007-05-03 15:29  source\WindowsApplication1\UserControl1.cs
     文件        1265  2007-06-01 11:02  source\WindowsApplication1\Settings.cs
     文件       16964  2007-11-29 16:43  source\WindowsApplication1\toolBox.cs
     文件      120641  2007-12-04 11:37  source\WindowsApplication1\Shapes.cs
     文件        5889  2007-11-29 11:46  source\WindowsApplication1\WindowsApplication1.csproj
     文件        1984  2007-05-24 09:57  source\WindowsApplication1\vectShapes.Designer.cs
     文件        5814  2007-05-24 09:57  source\WindowsApplication1\vectShapes.resx
     文件       45553  2007-12-03 13:15  source\WindowsApplication1\vectShapes.cs
     文件       16495  2007-05-16 13:25  source\WindowsApplication1\richForm2.Designer.cs
     文件       13961  2007-05-16 13:25  source\WindowsApplication1\richForm2.resx
     文件       29372  2007-11-29 16:43  source\WindowsApplication1\toolBox.resx
     文件        9522  2007-11-08 16:46  source\WindowsApplication1\Anteprima.Designer.cs
     文件        6211  2007-11-08 16:46  source\WindowsApplication1\Anteprima.resx
     文件       10463  2007-05-16 13:25  source\WindowsApplication1\richForm2.cs
     文件       48244  2007-11-29 16:43  source\WindowsApplication1\toolBox.Designer.cs
     文件        5987  2007-11-20 11:18  source\WindowsApplication1\Form1.resx
     文件        3157  2007-11-20 11:18  source\WindowsApplication1\Form1.cs
     文件        7097  2007-11-08 16:30  source\WindowsApplication1\RichTextBoxPrintCtrl.cs
     文件        2537  2007-11-08 16:46  source\WindowsApplication1\Anteprima.cs
............此处省略20个文件信息

评论

共有 条评论