|
我是这样创建内存DC的
- BITMAPINFO bi;
- bi.bmiHeader.biSize = sizeof(bi);
- bi.bmiHeader.biWidth = 200;
- bi.bmiHeader.biHeight= 200;
- bi.bmiHeader.biBitCount=24;
- bi.bmiHeader.biPlanes = 1;
- bi.bmiHeader.biCompression=BI_RGB;
- bi.bmiHeader.biSizeImage = 0;
- hMemDC = CreateCompatibleDC(hDC);
- hMemBitmap = CreateDIBSection(hMemDC, &bi, DIB_RGB_COLORS, (void**)&ppvMemBits, NULL, 0);
复制代码
字体输出到hMemDC上 就没有了反走样? 大家帮帮小弟呀 |
|