J
james
HBITMAP is one of GDI object in CDC, So you need to use SelectObject to
select HBITMAP object into CDC before you draw.
select HBITMAP object into CDC before you draw.
AD said:Hey,
I have a problem with getting a bitmap (HBITMAP) from Device Context using
Graphics object.
Let's say I draw something :
CDC ndc;
HBITMAP hb;
ndc.CreateCompatibleDC(dc);
Graphics g(ndc->m_hDC);
g.Draw(something..); //drawing on g is here
hb= ???
And how to get a bitmap then? Or maybe I did something wrong..
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.