• 大小: 17.81MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-16
  • 语言: 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));
                    }
                }
            }
        }
    }
}

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

     文件      20480  2009-12-28 00:13  Chapter4\Example4_2_1\Example4_2_1\bin\Debug\Example4_2_1.exe

     文件      24064  2009-12-28 00:13  Chapter4\Example4_2_1\Example4_2_1\bin\Debug\Example4_2_1.pdb

     文件       5632  2009-12-28 00:14  Chapter4\Example4_2_1\Example4_2_1\bin\Debug\Example4_2_1.vshost.exe

     文件       3079  2009-12-27 23:49  Chapter4\Example4_2_1\Example4_2_1\Example4_2_1.csproj

     文件       2191  2009-12-28 00:13  Chapter4\Example4_2_1\Example4_2_1\Form1.cs

     文件       1173  2009-12-27 23:49  Chapter4\Example4_2_1\Example4_2_1\Form1.designer.cs

     文件        784  2009-12-27 23:49  Chapter4\Example4_2_1\Example4_2_1\obj\Debug\Example4_2_1.csproj.GenerateResource.Cache

     文件      20480  2009-12-28 00:13  Chapter4\Example4_2_1\Example4_2_1\obj\Debug\Example4_2_1.exe

     文件      24064  2009-12-28 00:13  Chapter4\Example4_2_1\Example4_2_1\obj\Debug\Example4_2_1.pdb

     文件        180  2009-12-27 23:49  Chapter4\Example4_2_1\Example4_2_1\obj\Debug\Example4_2_1.Properties.Resources.resources

     文件        662  2009-12-28 00:14  Chapter4\Example4_2_1\Example4_2_1\obj\Example4_2_1.csproj.FileListAbsolute.txt

     文件        479  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1\Program.cs

     文件       1318  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1\Properties\AssemblyInfo.cs

     文件       2853  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1\Properties\Resources.Designer.cs

     文件       5350  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1\Properties\Resources.resx

     文件       1097  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1\Properties\Settings.Designer.cs

     文件        249  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1\Properties\Settings.settings

     文件        925  2009-12-27 23:48  Chapter4\Example4_2_1\Example4_2_1.sln

    ..A..H.     12800  2009-12-28 00:14  Chapter4\Example4_2_1\Example4_2_1.suo

     文件      20480  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\bin\Debug\Example4_2_2.exe

     文件      28160  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\bin\Debug\Example4_2_2.pdb

     文件       5632  2009-12-28 00:18  Chapter4\Example4_2_2\Example4_2_2\bin\Debug\Example4_2_2.vshost.exe

     文件       3231  2008-11-04 16:01  Chapter4\Example4_2_2\Example4_2_2\Example4_2_2.csproj

     文件       4020  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\Form1.cs

     文件       1410  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\Form1.Designer.cs

     文件       5814  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\Form1.resx

     文件        842  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\obj\Debug\Example4_2_2.csproj.GenerateResource.Cache

     文件      20480  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\obj\Debug\Example4_2_2.exe

     文件        180  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\obj\Debug\Example4_2_2.Form1.resources

     文件      28160  2009-12-28 00:16  Chapter4\Example4_2_2\Example4_2_2\obj\Debug\Example4_2_2.pdb

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

评论

共有 条评论