24,860
社区成员




m_Image2.SetJpegQuality(70);
CxImage::CXTEXTINFO textword;
m_Image2.InitTextInfo( &textword );
_stprintf( textword.lfont.lfFaceName, _T("Times New Roman"));
textword.lfont.lfCharSet = GB2312_CHARSET ;//字体
textword.lfont.lfWeight = 30 ;//字体重量,粗细
textword.lfont.lfItalic = 0 ; //
textword.lfont.lfUnderline = 0 ; //是否加下划线
textword.fcolor = RGB( 255,0,0 );//字体颜色
textword.lfont.lfHeight = 50;
textword.lfont.lfWeight = 300;
//textword.b_round
//textword.bcolor = RGB( 0, 80,160 );//背景颜色
textword.opaque = 0; //背景透明不透明
textword.b_opacity = (float)(0)/(float)100; //透明度
textword.b_round = (BYTE) 10 ; //四舍五入为背景矩形半径
textword.smooth = (BYTE)1; //平滑选项的文本
_stprintf( textword.text, _T("DEMO") );
m_Image2.DrawStringEx(0,0,100,&textword);