Form1.cs

(完整代码) 875B

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 Rose
{
	public partial class Rose : Form
	{
		Graphics gr;
		private static int width = Screen.PrimaryScreen.WorkingArea.Width;
		private static int height = Screen.PrimaryScreen.WorkingArea.Height;

		public Rose()
		{
			InitializeComponent();

			this.ClientSize = new Size(width, height);
			this.TransparencyKey = this.BackColor;
		}

		private void timer1_Tick(object sender, EventArgs e)
		{
			int x, y;
			Random ran = new Random();

			x = ran.Next(-10, width - 118);
			y = ran.Next(-10, height - 100);
			
			Point point = new Point(x, y);
			
			gr = CreateGraphics();
			gr.DrawImage(Properties.Resources.r, point);
		}
	}
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。