當前位置:編程學習大全網 - 電腦編程 - Gdi字體編程

Gdi字體編程

m_GDIPlusFont?=?新的?字體(dc.m_hDC,?m _ Font);

作廢?拉繩(CDCHandle?dc,?CString?strText,?CRectHelper?rc)

{

圖形?g(直流);

SolidBrush?solidBrush(顏色(255,255,?255,?255));

StringFormat?stringFormat

stringFormat。set alignment(string alignment near);

stringFormat。SetLineAlignment(string alignment near);

g.拉繩(strText,?strText。GetLength(),?m_GDIPlusFont,?rc,?& amp字符串格式,?& ampsolid brush);

}字體格式設置好了嗎?我壹般用GDI+來畫字,我就是這麽用的。

  • 上一篇:龍格現象的簡介
  • 下一篇:怎麽在大理石上刻字?過程,及註意事項!
  • copyright 2024編程學習大全網