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("Water lilies.jpg"));
//创建字体
Font font = new Font("黑体", 60, FontStyle.Underline ^ FontStyle.Bold);
g.DrawString("中国电力出版社", font, brush, new Point(10, 10));
}
}
}
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("Water lilies.jpg"));
//创建字体
Font font = new Font("黑体", 60, FontStyle.Underline ^ FontStyle.Bold);
g.DrawString("中国电力出版社", font, brush, new Point(10, 10));
}
}
}