Tips
Tuesday, May 22, 2007
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...
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment