using System
using System
using System
using System
using System
using System
using System
namespace WindowsApplication
{
/// <summary>
/// Form
/// </summary>
public class Form
{
/// <summary>
/// 必需的設計器變量
/// </summary>
private System
private string TextToDraw =
public Form
{
//
// Windows 窗體設計器支持所必需的
//
InitializeComponent();
// 在 InitializeComponent 調用後添加任何構造函數代碼
this
}
/// <summary>
/// 清理所有正在使用的資源
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components
}
}
base
}
#region Windows Form Designer generated code
/// <summary>
/// 設計器支持所需的方法
/// 此方法的內容
/// </summary>
private void InitializeComponent()
{
//
// Form
//
this
this
this
this
System
this
this
this
}
#endregion
/// <summary>
/// 應用程序入口點
/// </summary>
[STAThread]
static void Main()
{
Application
}
protected override void OnPaintBackground(PaintEventArgs e)
{
LinearGradientBrush b = new LinearGradientBrush(this
Color
e
b
}
private void Form
{
// 創建一個小的Bitmap
Bitmap bm = new Bitmap(this
//得到 Graphics 對象
Graphics g = Graphics
// 必須使用 antialiased rendering hint
g
//this matrix zooms the text out to
Matrix mx = new Matrix(
g
// 畫陰影
g
g
e
e
e
e
bm
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11367.html