user25749
user25749

Reputation: 4885

AntiAlias failed when draw string with certain angle in GDI+

I am using the following code to draw Strings. In 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());

It is anoying that the string drawn have alias. Is there any method to remove the alias? Many thanks!

Upvotes: 0

Views: 739

Answers (1)

Pete Kirkham
Pete Kirkham

Reputation: 49311

SetSmoothingMode applies to lines and curves. Try SetTextRenderingHint

Upvotes: 1

Related Questions