请问使用GDI+ 绘制文字时,怎么沿圆弧排列?

一休宗纯 2013-12-30 02:28:20
由于程序的需要,我对于字符串,要一个个字符去绘制(比如有时需要将字符排成圆形,而不是排成一条直线)
怎么使用GDI+ 实现呢?
...全文
376 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
一休宗纯 2014-04-01
  • 打赏
  • 举报
回复
多谢各位大侠
向立天 2014-02-14
  • 打赏
  • 举报
回复
您好 我是本版版主 此帖已多日无人关注 请您及时结帖 如您认为问题没有解决可按无满意结帖处理 另外本版设置了疑难问题汇总帖 并已在版面置顶 相关规定其帖子中有说明 您可以根据规定提交您帖子的链接 如您目前不想结帖只需回帖说明 我们会删除此结帖通知 见此回复三日内无回应 我们将强制结帖 相关规定详见界面界面版关于版主结帖工作的具体办法
xurlhwhb 2014-01-01
  • 打赏
  • 举报
回复
参考这个 http://www.codeproject.com/Articles/13864/Text-on-Path-with-VB-NET 不过需要把 vb.net 转成 c++
gz_qmc 2014-01-01
  • 打赏
  • 举报
回复
这里有个制作公章的源程序 你下来参考一下 http://www.vckbase.com/index.php/cv/569
MoreWindows 2013-12-30
  • 打赏
  • 举报
回复
先根据圆的半径,字符串长度算出每个字符的位置,该字符的偏转角度。 对于字符的位置使用TextOut指定x,y。其函数原型如下: BOOL TextOut( HDC hdc, // handle to DC int nXStart, // x-coordinate of starting position int nYStart, // y-coordinate of starting position LPCTSTR lpString, // character string int cbString // number of characters ); 对于字符的偏转角度,使用CreateFont,其函数原型如下: HFONT CreateFont( int nHeight, // height of font int nWidth, // average character width int nEscapement, // angle of escapement int nOrientation, // base-line orientation angle int fnWeight, // font weight DWORD fdwItalic, // italic attribute option DWORD fdwUnderline, // underline attribute option DWORD fdwStrikeOut, // strikeout attribute option DWORD fdwCharSet, // character set identifier DWORD fdwOutputPrecision, // output precision DWORD fdwClipPrecision, // clipping precision DWORD fdwQuality, // output quality DWORD fdwPitchAndFamily, // pitch and family LPCTSTR lpszFace // typeface name ); 可以参考http://www.99inf.net/SoftwareDev/VC/37782.htm ---------------- MoreWindows 微软最有价值专家,CSDN博客专家,迅雷/微软实习生,迅雷大全核心研发人员,百度校招第二名。 个人博客:http://blog.csdn.net/MoreWindows

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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