Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 CBitmap 对象“m_bmp”。我需要将其转换为 CxImage 对象。有任何想法吗?是否有任何从位图对象到 CxImage 可用的其他类型的直接转换?
m_Img.CreateFromHBITMAP((HBITMAP)m_bmp.m_hObject);
m_Img 是一个 CxImage 对象。在初始化设备上下文以绘制到“m_bmp”之后,调用 CreateFromHBITMAP 函数。