Jane
2007-12-21 08:23:02 UTC
I use GDIPlus to render text. I write text with outline-bordered using
GraphicsPath.
The followings are my codes:
......
myGraphics.SetSmoothingMode( SmoothingModeAntiAlias ) ;
myGraphics.SetTextRenderingHint( TextRenderingHintAntiAlias ) ;
......
statusRet = path.AddString( L"Master", -1, &myFontFamily, FontStyleRegular,
73, pointF, &myStringFormat ) ;
statusRet = myGraphics.DrawPath( &myPen, &path ) ;
statusRet = myGraphics.FillPath( &TextBrush, &path ) ;
The result is not very good. I can see there are some sawtooth around the
letter "M". ( I cannot attache the screenshot here. :-( )
I think using SmoothingModeAntiAlias8x8 will be better. But it seems that
SmoothingModeAntiAlias8x8(the feature of GDIPlus1.1) isn't available now.
Does
anybody know about it? or is there a good solution to solve this problem?
GraphicsPath.
The followings are my codes:
......
myGraphics.SetSmoothingMode( SmoothingModeAntiAlias ) ;
myGraphics.SetTextRenderingHint( TextRenderingHintAntiAlias ) ;
......
statusRet = path.AddString( L"Master", -1, &myFontFamily, FontStyleRegular,
73, pointF, &myStringFormat ) ;
statusRet = myGraphics.DrawPath( &myPen, &path ) ;
statusRet = myGraphics.FillPath( &TextBrush, &path ) ;
The result is not very good. I can see there are some sawtooth around the
letter "M". ( I cannot attache the screenshot here. :-( )
I think using SmoothingModeAntiAlias8x8 will be better. But it seems that
SmoothingModeAntiAlias8x8(the feature of GDIPlus1.1) isn't available now.
Does
anybody know about it? or is there a good solution to solve this problem?