0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

cscの作法 その9 日の丸

0
Last updated at Posted at 2020-01-02

概要

cscの作法、調べてみた。
練習問題やってみた。

練習問題

日の丸を描け。

写真

image.png

サンプルコード

using System;
using System.Windows.Forms;
using System.Drawing;

class form1: Form {
	form1() {
		Text = "maru";
		ClientSize = new Size(300, 300);
	}
	protected override void OnPaint(PaintEventArgs e) {
		Graphics g = e.Graphics;
		Brush red = new SolidBrush(Color.Red);
		g.FillEllipse(red, 30, 30, 230, 230);
		base.OnPaint(e);
	}
	[STAThread]
	public static void Main() {
		Application.Run(new form1());
	}
}


以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?