Originally posted by: Todd Jeffreys
You forget to delete the compatible bitmap AND the compatible DC.
ReplyOriginally posted by: Harald Flasch Ren�
// draw bitmap
dibDraw(pDC->m_hDC, pDoc->hDib, 10, 10);
// draw semi transparent bitmap
CBitmap bitmap;
srcDC.CreateCompatibleDC(pDC);
bitmap.LoadBitmap(IDB_BITMAP1);
void CSchMSView::OnDraw(CDC* pDC)
{
CSchMSDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
CDC srcDC;
srcDC.SelectObject(&bitmap);
DrawSemiTransparentBitmap(pDC, 50, 50, 400, 250, &srcDC, 0, 0);
}
Originally posted by:
I too would like to see a piece of sample code. I am relatively unfamiliar with graphics (other than very simple operations). I am unclear as to where the source DC is comming from and what it is pointing to. I am assuming it is to an offscreen DC that contains the bitmap or image that is to be drawn. Is this correct?
Reply
Originally posted by: futurity
thank for you.
i need sample program.
plz. give me.