c++ - 在 GDI+ 中以特定角度绘制字符串时 AntiAlias 失败

标签 c++ string gdi+ antialiasing

我正在使用以下代码绘制字符串。在 GDI+ 中

Graphics tempFontGr(XXX);
Matrix* myPathMatrix = NULL;
 myPathMatrix->Rotate(GetDCAngle(), MatrixOrderPrepend);
cantempFontGr.SetTransform(myPathMatrix);
tempFontGr.SetInterpolationMode(InterpolationModeHighQuality);
tempFontGr.SetSmoothingMode(SmoothingModeAntiAlias);
tempFontGr.DrawString(m_sWords, -1, tempFont.get(), tempRec, NULL, m_pBrush.get());

令人讨厌的是绘制​​的字符串有别名。有什么方法可以删除别名吗? 非常感谢!

最佳答案

SetSmoothingMode 适用于直线和曲线。尝试 SetTextRenderingHint

关于c++ - 在 GDI+ 中以特定角度绘制字符串时 AntiAlias 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1957581/

相关文章:

c# - 检测两条重合线段的重合子集

c# - 在 GDI+ 中绘制带渐变的折线

java - Jni native C++ 在 android 中并不比 java 快

json - 如何摆脱字符串中的\' from queried string which produced\' 而不是 '

c - 查找字符串中的子字符串

c++ - 如何检查字符串是否是另一个字符串的真子集

c# - 我可以为我在面板上绘制的节点显示工具提示吗?

c++ - HLSL:包装错误?

c++ - 按降序对 vector 进行排序

c++ - Windows 问题上的 libcurl