怎么用vc打开jpg格式的图片

2025-05-21 06:42:08
推荐回答(2个)
回答1:

代码仅供参考:
void CShowBitmapView::ShowPic(CDC* pDC,CString strPicPath)
{
if(!m_MyImage.IsNull())
m_MyImage.Destroy();
HRESULT hResult=m_MyImage.Load(strPicPath);
int iWidth=m_MyImage.GetWidth();
int iHeight=m_MyImage.GetHeight();
m_MyImage.Draw(pDC->m_hDC,0,0,iWidth,iHeight);
}

回答2:

每年去寺庙为家人点几盏油灯,告诉自己的良心,你不在的时候,同样是爱他们的。