C++ Gdiplus::Bitmap对象的初始化
Gdiplus::Bitmap*pCapturedBitmap=NULL;gWidth=1280;gHeight=720;pCapturedBitmap=::newGdi...
Gdiplus::Bitmap *pCapturedBitmap = NULL;
gWidth = 1280;
gHeight = 720;
pCapturedBitmap = ::new Gdiplus::Bitmap(gWidth, gHeight, PixelFormat24bppRGB);
这样初始化之后pCapturedBitmap->GetWidth()和 pCapturedBitmap->GetHeight()的值仍然是0,是为什么呢? 展开
gWidth = 1280;
gHeight = 720;
pCapturedBitmap = ::new Gdiplus::Bitmap(gWidth, gHeight, PixelFormat24bppRGB);
这样初始化之后pCapturedBitmap->GetWidth()和 pCapturedBitmap->GetHeight()的值仍然是0,是为什么呢? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询