Reputation: 3381
In my WinForm app I draw into a System.Drawing.Bitmap
. I create fonts from a LOGFONT and draw using the GDI function ExtTextOutW. However the output is terrible. It has bad jaggies and looks like the antialiaser was on LSD. Reading around this seems a common issue - is there a resolution?
If I use:
lf.lfQuality = FontQuality.NONANTIALIASED_QUALITY
when I create the font then the horrible jaggies go away but of course there is no antialiasing.
Is there a way to create smooth text in a Bitmap with ExtTextOutW?
Upvotes: 1
Views: 961
Reputation: 1548
It is possible but a bit tricky and it can't have transparent background. You will need to:
See GDI text rendering to image for more details.
Upvotes: 1