• 大小: 17.94MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-17
  • 语言: C#
  • 标签: C#  

资源简介

C#二维三维图形绘制工程实例宝典

资源截图

代码片段和文件信息

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

namespace Example2_1_1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            using (Pen bluePen = new Pen(Color.Blue 1))
            {
                if (ClientRectangle.Height / 10 > 0)
                {
                    for (int y = 0; y < ClientRectangle.Height;
                       y += ClientRectangle.Height / 10)
                    {
                        g.DrawLine(bluePen new Point(0 0)
                           new Point(ClientRectangle.Width y));
                    }
                }
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     532480  2008-10-29 13:22  C# 3D\autorun.exe

     文件         47  2006-02-28 16:53  C# 3D\autorun.inf

     文件      20480  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\bin\Debug\Example2_1_1.exe

     文件      19968  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\bin\Debug\Example2_1_1.pdb

     文件       5632  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\bin\Debug\Example2_1_1.vshost.exe

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\bin\Debug

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\bin

     文件       3079  2009-12-25 23:07  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Example2_1_1.csproj

     文件        937  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Form1.cs

     文件       1173  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Form1.Designer.cs

     文件        784  2009-12-25 23:08  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Debug\Example2_1_1.csproj.GenerateResource.Cache

     文件      20480  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Debug\Example2_1_1.exe

     文件      19968  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Debug\Example2_1_1.pdb

     文件        180  2009-12-25 23:08  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Debug\Example2_1_1.Properties.Resources.resources

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Debug\TempPE

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Debug

     文件        662  2009-12-25 23:09  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj\Example2_1_1.csproj.FileListAbsolute.txt

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\obj

     文件        479  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Program.cs

     文件       1318  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Properties\AssemblyInfo.cs

     文件       2853  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Properties\Resources.Designer.cs

     文件       5350  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Properties\Resources.resx

     文件       1097  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Properties\Settings.Designer.cs

     文件        249  2009-12-25 23:06  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Properties\Settings.settings

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1\Properties

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1

     文件        925  2009-12-25 23:07  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1.sln

    ..A..H.     12288  2009-12-25 23:17  C# 3D\chapter2-3-4\Chapter2\Example2_1_1\Example2_1_1.suo

     目录          0  2011-04-09 22:37  C# 3D\chapter2-3-4\Chapter2\Example2_1_1

     文件      20480  2009-12-25 23:19  C# 3D\chapter2-3-4\Chapter2\Example2_1_2\Example2_1_2\bin\Debug\Example2_1_2.exe

............此处省略2975个文件信息

评论

共有 条评论