• 大小: 25.76MB
    文件类型: .zip
    金币: 2
    下载: 0 次
    发布日期: 2024-01-29
  • 语言: C#
  • 标签: 公章  

资源简介

此资源是学习唐大仕课程,评约过程,获得别人优秀作品。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace homework8
{
    public partial class Form1 : Form
    {
        Graphics g;
        Pen pen;
        Brush brush;
        Font font;
        int angle = 0;
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender EventArgs e)
        {
            Random rand = new Random();
            g = this.CreateGraphics();
            pen = new Pen(Color.FromArgb(100 rand.Next(256) rand.Next(256) rand.Next(256)) 8);
            brush = new SolidBrush(Color.FromArgb(100 rand.Next(256) rand.Next(256) rand.Next(256)));
            font = new Font(“方正舒体“ 50);

            

            Rectangle rect = new Rectangle(20+angle50+angle180180);
            
            //rect.Offset(new Point(angleangle));      
            g.DrawRectangle(pen rect);
            g.DrawString(“白 痴“ font brush new PointF(30+angle 60+angle));
            g.DrawString(“印 章“ font brush new PointF(30+angle 130+angle));


            g.RotateTransform(angle);
            angle += 10;


            
        }

        private void timer1_Tick(object sender EventArgs e)
        {
            g.Clear(this.BackColor);
            button2_Click(sender e);
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      176681  2017-11-23 15:25  第八章\03_BankSystemV1.pdf
     文件       48396  2017-11-23 14:40  第八章\homework8.rar
     目录           0  2017-11-23 14:40  第八章\homework8\
     目录           0  2017-11-23 14:40  第八章\homework8\.vs\
     目录           0  2017-11-23 14:40  第八章\homework8\.vs\homework8\
     目录           0  2017-11-23 14:40  第八章\homework8\.vs\homework8\v14\
     文件       41472  2017-11-15 15:54  第八章\homework8\.vs\homework8\v14\.suo
     文件         994  2017-11-09 20:36  第八章\homework8\homework8.sln
     目录           0  2017-11-23 14:40  第八章\homework8\homework8\
     文件         189  2017-11-09 20:35  第八章\homework8\homework8\App.config
     目录           0  2017-11-23 14:40  第八章\homework8\homework8\bin\
     目录           0  2017-11-23 14:40  第八章\homework8\homework8\bin\Debug\
     文件        9216  2017-11-15 15:53  第八章\homework8\homework8\bin\Debug\homework8.exe
     文件         189  2017-11-09 20:35  第八章\homework8\homework8\bin\Debug\homework8.exe.config
     文件       19968  2017-11-15 15:53  第八章\homework8\homework8\bin\Debug\homework8.pdb
     文件       22696  2017-11-15 15:54  第八章\homework8\homework8\bin\Debug\homework8.vshost.exe
     文件         189  2017-11-09 20:35  第八章\homework8\homework8\bin\Debug\homework8.vshost.exe.config
     文件         490  2016-07-16 19:44  第八章\homework8\homework8\bin\Debug\homework8.vshost.exe.manifest
     文件        1660  2017-11-15 15:53  第八章\homework8\homework8\Form1.cs
     文件        2508  2017-11-09 21:54  第八章\homework8\homework8\Form1.Designer.cs
     文件        6011  2017-11-09 21:54  第八章\homework8\homework8\Form1.resx
     文件        3916  2017-11-09 20:50  第八章\homework8\homework8\homework8.csproj
     目录           0  2017-11-23 14:40  第八章\homework8\homework8\obj\
     目录           0  2017-11-23 14:40  第八章\homework8\homework8\obj\Debug\
     文件        1464  2017-11-15 11:11  第八章\homework8\homework8\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7132  2017-11-09 20:36  第八章\homework8\homework8\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件         636  2017-11-15 15:54  第八章\homework8\homework8\obj\Debug\homework8.csproj.FileListAbsolute.txt
     文件        1012  2017-11-09 21:54  第八章\homework8\homework8\obj\Debug\homework8.csproj.GenerateResource.Cache
     文件        2384  2017-11-09 20:50  第八章\homework8\homework8\obj\Debug\homework8.csprojResolveAssemblyReference.cache
     文件        9216  2017-11-15 15:53  第八章\homework8\homework8\obj\Debug\homework8.exe
     文件         180  2017-11-09 21:54  第八章\homework8\homework8\obj\Debug\homework8.Form1.resources
............此处省略245个文件信息

评论

共有 条评论