Reputation: 2404
I created a Transparent Layered window with a color key that I use to make the window transparent. So far it works all fine. Writing text on it - using GDI+ - works, too...
The problem I encounter is, that the text has a thin border of the colorkey-color around the letters...
What I do in the WM_PAINT is:
1. Clear the drawing area Graphics::Clear(ColorKey);
2. Draw the text on it.
Screenshot of what i mean: http://imageshack.us/photo/my-images/709/cutp.jpg/
Anyone knows about how to avoid this?
Upvotes: 0
Views: 460
Reputation: 308500
Try calling Graphics::SetTextRenderingHint(TextRenderingHintSingleBitPerPixelGridFit)
.
Upvotes: 1