コード例 #1
0
ファイル: Cub.cs プロジェクト: ShartepStudy/C_sharp
        public static void Create(Graphics g)
        {
            //  Cub.BrushesExampleMethod(g);
            //Cub.Draw(g);
            Cub.PensExampleMethod(g);

            int       x = 15, y = 20, h = 70, w = 200;
            Rectangle rect0 = new Rectangle(x, y, w, h); // или
            Rectangle rect1 = new Rectangle(new Point(x, y), new Size(w, h));
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: mkbiltek2019/Lesons_SAG
        private void Form1_Paint(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            Cub.Create(g);
        }