|
How can I get CBitmap from CDib ? I have tried in follow way:
CBitmap Bitmap;
Bitmap.FromHandle((HBITMAP)pDoc->m_Dib->m_hBitmap);
doesn't work ... can you help me ? Thank you.
|
|
|
|
|
There are four GDI functions that can be used to converts DIBs to DDBs: CreateDIBitmap() , SetDIBits() , and SetDIBitsToDevice() , and StretchDIBits() .
Have a look at the Bitmap Basics - A GDI tutorial[^] article. The sources contain sample code to convert bitmaps.
Google will give you also a lot of results when feeding it with the above function names or 'DIB to DDB'.
|
|
|
|