砖块阴影字Bricks
来源:互联网 发布:c语言谭浩强pdf下载 编辑:程序博客网 时间:2024/06/13 01:19
FontMenuForm 基类见:http://blog.csdn.net/u013384702/article/details/17884617
Code:
using System;using System.Drawing;using System.Windows.Forms;using System.Drawing.Drawing2D;namespace CsStudy{ class Bricks : FontMenuForm { public new static void Main() { Application.Run(new Bricks()); } public Bricks() { Text = "Bricks"; strText = "Bricks"; font = new Font("Times New Roman", 144); } protected override void DoPage(System.Drawing.Graphics grph, System.Drawing.Color clr, int cx, int cy) { SizeF sizef = grph.MeasureString(strText, font); Brush hbrush = new HatchBrush(HatchStyle.HorizontalBrick, Color.White, Color.Black);//阴影画刷 grph.DrawString(strText, font, hbrush, (cx - sizef.Width) / 2, (cy - sizef.Height) / 2); } }}
效果图:
0 0
- 砖块阴影字Bricks
- 阴影字
- Boxof Bricks
- 阴影
- 阴影
- 阴影
- 阴影
- 阴影
- 阴影
- 阴影
- 阴影
- 阴影
- 打砖块
- 砖块2
- 铺砖块
- 铺砖块
- 堆砖块
- 堆砖块
- Deepin Linux Desktop, 截图工具剖析(五) python - lambda, list, dictionary
- 初窥Linux 之 我最常用的20条命令
- 怎样使myeclipse中的js文件不报错
- VC LIST控件使用方法
- 七头猪小组新手训练场第3弹
- 砖块阴影字Bricks
- Photoshop学习笔记
- WiKi上关于USRP使用的一些问答(一)
- 求素数
- 庞峰Opencv学习(三)--灰度直方图
- bat实例 lean code
- 其实,树要是动起来也很惊悚
- snapchat服务器被黑
- Makefile中的常用函数