1

I have a CBitmap object "m_bmp". I need to convert this to a CxImage Object. Any ideas? Is there any direct conversion from bitmap object to other types available from CxImage?

esh
  • 2,842
  • 5
  • 23
  • 39

1 Answers1

1

m_Img.CreateFromHBITMAP((HBITMAP)m_bmp.m_hObject);

m_Img is a CxImage Object. After initializing the device context to draw to "m_bmp", the CreateFromHBITMAP function is called.

esh
  • 2,842
  • 5
  • 23
  • 39