투명한 비트 맵에 String을 그리고 나서 대상 캔버스에 A를 그립니다. 그러나 어떤 경우에는 문자 주위에 검은 색 테두리가 있습니다. 이미지를 투명한 비트 맵으로 그릴 때 검정색 경계선을 그릴 때
Bitmap* tempImg = new Bitmap(1000, 1000, PixelFormat32bppARGB);
Graphics tempGr(tempImg);
tempGr.Clear(Color(0, 255,255,255));
Gdiplus::SolidBrush* brush = new SolidBrush(Color(255, 255, 0, 0));
Gdiplus::FontFamily fontFamily(L"Times New Roman");
Gdiplus::Font* font = new Gdiplus::Font(&fontFamily, 19, FontStyleRegular, UnitPixel);
RectF rec(400, 400, 1000, 10000);
tempGr.DrawString(
L"Merry Chrismas",
-1,
font,
rec,
NULL,
brush
);
Graphics desGr(hdc);
desGr.Clear(Color::Gray);
desGr.DrawImage(tempImg , 0,0, 1000, 1000);
desGr에 문자 무승부
어떤 글꼴 크기에 대한 블랙 보드가 있습니다.이 문제를 어떻게 피할 수 있습니까? 많은 감사!
블랙 보드에 대해 거의 혼란스럽지 않습니다. 검은 경계를 의미하는 것이 궁금합니다. – Elemental
미안하지만, 검은 색 테두리입니다. – user25749
DrawImage를 사용하여 비트 맵의 크기를 조절하는 것과 동일한 문제가 발생합니다. – moogs