zoukankan      html  css  js  c++  java
  • (C#)GDI+简单绘图画矩形

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    
    namespace _10._2._4
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            private void Form1_Paint(object sender, PaintEventArgs e)
            {
                Graphics g = e.Graphics;
                Pen pen = new Pen(Color.Tomato, 4);
                g.DrawRectangle(pen, 20, 20, 200, 220);
                Brush brush = new SolidBrush(Color.SpringGreen);
                g.FillRectangle(brush, 230, 20, 200, 220);
            }
        }
    }
    


  • 相关阅读:
    运算放大器
    阻抗模型
    mysql优化
    tomcat调优
    jvm调优
    springboot使用
    deploy工程到nexus
    Spring data elasticsearch使用
    kibana使用
    笔记
  • 原文地址:https://www.cnblogs.com/finlay/p/3234760.html
Copyright © 2011-2022 走看看