?
Hi,
meinst Du so:
void CSdi_testView::DrawMirror(CDC* pDC, CString str, int x, int y)
{
CDC mdc;
mdc.CreateCompatibleDC(pDC);
CBitmap bmp;
CSize siz = mdc.GetTextExtent(str);
bmp.CreateCompatibleBitmap(&mdc, siz.cx, siz.cy);
mdc.SelectObject(&bmp);
mdc.TextOut(0, 0, str);
for(int dy = 0; dy < siz.cy; dy++)
{
for(int dx = 0; dx < siz.cx; dx++)
{
COLORREF cref = mdc.GetPixel(dx, dy);
pDC->SetPixelV(x - dx, y + dy, cref);
}
}
}
Genauso sollte es sein, besten Dank nochml.
MfG
kfy