Hi, I am using a bitmap as an off screen DC to stop flickering in a graph
control inherited from a static control.
However, I would also like to be able to export an image version of this
graph.
Currently I am trying to use the following code:
"
void CMemDC::FillImage(CImage* pImage)
{
CImage localImage;
localImage.Attach(m_bitmap);
pImage->Create(m_rect.Width(), m_rect.Height(), 24);
localImage.BitBlt(pImage->GetDC(),0,0);
}
"
However, this causes BitBlt to assert I was wondering if anyone would be
able to tell me how to copy the contents of m_bitmap into pImage.
Thanks in advance,
Charles