All,
I am writing a bitmap to a file, however after I bit blat
with BitBlt how can I change all references from one colour
to another ? I am trying to change the blue background to
white so I can save the image with a white background.
Thanks.
CBitmap bitmap;
CClientDC dc(pwd);
CDC memDC;
CRect rect;
memDC.CreateCompatibleDC(&dc);
pwd->EnableWindow(FALSE );
pwd->GetClientRect(rect);
bitmap.CreateCompatibleBitmap(&dc, rect.Width(),rect.Height() );
CBitmap* pOldBitmap = memDC.SelectObject(&bitmap);
memDC.BitBlt(0, 0, rect.Width(),rect.Height(), &dc, 0, 0, SRCCOPY);
I am writing a bitmap to a file, however after I bit blat
with BitBlt how can I change all references from one colour
to another ? I am trying to change the blue background to
white so I can save the image with a white background.
Thanks.
CBitmap bitmap;
CClientDC dc(pwd);
CDC memDC;
CRect rect;
memDC.CreateCompatibleDC(&dc);
pwd->EnableWindow(FALSE );
pwd->GetClientRect(rect);
bitmap.CreateCompatibleBitmap(&dc, rect.Width(),rect.Height() );
CBitmap* pOldBitmap = memDC.SelectObject(&bitmap);
memDC.BitBlt(0, 0, rect.Width(),rect.Height(), &dc, 0, 0, SRCCOPY);