在c#里面怎样绘制一个立体字,空心字.阴影字???????????????(GDI+高手进)

u01055 2005-06-14 08:46:12
在c#里面怎样绘制一个立体字,空心字.阴影字???????????????
...全文
914 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
u01055 2005-06-17
  • 打赏
  • 举报
回复
高手助我啊~~~?
leomarswu 2005-06-16
  • 打赏
  • 举报
回复
up
u01055 2005-06-16
  • 打赏
  • 举报
回复
那么一个弧行文字怎么画啊?
bflovesnow 2005-06-15
  • 打赏
  • 举报
回复
mark
gOODiDEA 2005-06-15
  • 打赏
  • 举报
回复
private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)

{

//create a path

GraphicsPath pth = new GraphicsPath();

//Add a string

pth.AddString("Outline Text.",

new FontFamily("Times New Roman"),0,70,

new Point(30,30), StringFormat.GenericTypographic);

//Select the pen

Pen p=new Pen(Color.Blue,2.0f);

//draw te hollow outlined text

e.Graphics.DrawPath(p,pth);

//clear the path

pth.Reset();

//Add new text

pth.AddString("Filled outline Text.",

new FontFamily("Times New Roman"),0,70,

new Point(30,120),StringFormat.GenericTypographic);

//Fill it

e.Graphics.FillPath(Brushes.Red,pth);

//outline it

e.Graphics.DrawPath(p,pth);

//tidy up.

p.Dispose();

pth.Dispose();

}

by:http://www.bobpowell.net/texteffects.htm
conan19771130 2005-06-15
  • 打赏
  • 举报
回复
有意思啊,顶
u01055 2005-06-14
  • 打赏
  • 举报
回复
有例子吗?
psn 2005-06-14
  • 打赏
  • 举报
回复
立体字,同只笔一个字写多扁,每遍绘画坐标稍许移动。
空心字,用2种颜色的brush,粗细不一样,先用大笔写,再用小笔(同背景色)写
阴影字,2只画笔,转换坐标画阴影,设定阴影绘制区域(小又扁),旋转一定角度,绘制阴影,再恢复正常broad,画字
如果字很多,这些方法慢。
u01055 2005-06-14
  • 打赏
  • 举报
回复
怎么没有人回答我啊?~~

111,089

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧