在透明窗口上书写的文本周围的透明颜色键的彩色边框
Colored border of the transparent color key around text written on the transparent window
我创建了一个透明的分层窗口,使用颜色键使窗口透明。到目前为止,一切正常。在上面写文字-使用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)
。
相关文章:
- 使用一个考虑到std::map中键值的滚动或换行的键
- 将"打开的CV图像"中的"颜色"转换为整数格式
- 如何在c++中只将键插入到bimap的一侧
- 使用2个键的cpp-stl::优先级队列排序不正确
- 有效地使用std::unordered_map来插入或增加键的值
- 如何在内核C++中使用1920x1080x16M图形或类似的16M颜色?(VGA)
- 如何在24位SDL_Surface上设置像素的颜色
- C++映射有2个键,这样任何1个键都可以用来获取值
- 智能指针作为无序映射键,并通过引用进行比较
- 带有数组键C++的二进制映射
- 如何从SDL_Surface获取特定像素的颜色
- 使用 GLUT 使用键停止动画?
- 无法添加多个键以映射将结构作为键
- 将 std::set 与基于键的比较器一起使用
- 如何使用 std::variant 打印地图键/值?
- 将SDL_Surface Blit到另一个SDL_Surfaces上,然后应用颜色键
- 透明SDL2游戏(WIN32色键不正常工作)
- 如何制作一个当用户按下某些键时改变颜色的正方形
- 在透明窗口上书写的文本周围的透明颜色键的彩色边框
- 每当我按下c++键时,我如何在1个对象上应用照明颜色