How to use Memory DC with gdi+
Memory DC
Sample code...
HDC hSrcDC = GetDC(0);
HDC hMemDC = CreateCompatibleDC(hSrcDC);
Graphics graphics(hMemDC);
graphics.DrawLine(10,10,100,100);
BitBlt(hSrcDC,0,0,100,100,hMemDC,0,0,SRCCPY);
and then Do the bitBlt op to the source...
Sample code...
HDC hSrcDC = GetDC(0);
HDC hMemDC = CreateCompatibleDC(hSrcDC);
Graphics graphics(hMemDC);
graphics.DrawLine(10,10,100,100);
BitBlt(hSrcDC,0,0,100,100,hMemDC,0,0,SRCCPY);
and then Do the bitBlt op to the source...
Labels: VC++
0 Comments:
Post a Comment
<< Home