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;
using System.Drawing.Drawing2D;
namespace WindowsFormsApplication2
{
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("er.jpg"));
Font font = new Font("黑体",60,FontStyle.Underline^FontStyle.Bold);
g.DrawString("你好China",font,brush,new Point(10,10));
}
}
}
绘制文字
最新推荐文章于 2021-12-02 16:31:52 发布