在透明窗口上书写的文本周围的透明颜色键的彩色边框

Colored border of the transparent color key around text written on the transparent window

本文关键字:颜色 色键 彩色 边框 透明 文本 透明窗口 书写 周围      更新时间:2023-10-16

我创建了一个透明的分层窗口,使用颜色键使窗口透明。到目前为止,一切正常。在上面写文字-使用GDI+ -也可以…

我遇到的问题是,文本在字母…周围有一个很薄的colorkey-color边框

我在WM_PAINT中做的是:

1. Clear the drawing area Graphics::Clear(ColorKey);
2. Draw the text on it.

我的意思的截图:http://imageshack.us/photo/my-images/709/cutp.jpg/

有人知道如何避免这种情况吗?

尝试调用Graphics::SetTextRenderingHint(TextRenderingHintSingleBitPerPixelGridFit)