从内存中加载图片

	if(pVert)
	{
		CImage img;
		img.Load(_T("d:/main.jpg"));
		const wchar_t* strImage = L"restype=\'背景\' xtiled=\'true\' ytiled=\'true\'";
		m_PaintManager.AddImage(strImage, (HBITMAP)img, img.GetWidth(), img.GetHeight(), false);
		const DuiLib::TImageInfo* pInfo = m_PaintManager.GetImage(strImage);
		img.Detach();
		pVert->SetBkImage(strImage);
	}

你可能感兴趣的:(从内存中加载图片)