Reputation: 2872
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?
Upvotes: 1
Views: 552
Reputation: 2872
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.
Upvotes: 1