赞
踩
BUG 1:GDI+ Image::FromFile 无效,调用图像指针始终为NULL
- m_pImg = Gdiplus::Bitmap::FromFile(m_imgFilePath);
- m_pImg为NULL
- GdiplusStartupInput m_Gdistart;
- ULONG_PTR m_GdiplusToken;
GdiplusStartup(&m_GdiplusToken,& m_Gdistart,NULL);
- #include "gdiplus.h"
- using namespace Gdiplus;
- //创建目标Bitmap
- Bitmap *bmpDest = new Bitmap(destWidth, destHeight, m_pImg->GetPixelFormat());
- //#ifdef _DEBUG
- //#define new DEBUG_NEW
- //#endif
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。