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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
TextureBrush brush = new TextureBrush(Image.FromFile(@"pictur\bg.jpg"));
Font font = new Font("黑体", 60, FontStyle.Underline ^ FontStyle.Bold);
g.DrawString("烟台大学", font, brush, new Point(10, 10));
}
}
}
C#DrawString
最新推荐文章于 2025-02-10 08:41:22 发布