您当前的位置: 首页 > 

VC 字符描边

发布时间:2013-06-07 10:47:41 ,浏览量:0

VC 字符描边

//艺术字体 void DrawTextString(CDC * pDC, LPCTSTR pszString, COLORREF crText, COLORREF crFrame, int nXPos, int nYPos, int aph) { //变量定义 int nStringLength=lstrlen(pszString); int nXExcursion[8]={1,1,1,0,-1,-1,-1,0}; int nYExcursion[8]={-1,0,1,1,1,0,-1,-1}; //int nXExcursion[4]={1,0,-1,0}; //int nYExcursion[4]={0,1,0,-1};

LOGFONT   logfont; CFont   *oldfont, nowfont;

oldfont=pDC->GetCurrentFont(); oldfont->GetLogFont(&logfont);

logfont.lfEscapement = 10*aph;

nowfont.CreateFontIndirect(&logfont); oldfont = pDC->SelectObject(&nowfont);

//绘画边框 pDC->SetTextColor(crFrame); for (int i=0;i

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    108697博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.5838s