Gdiplus::BitmapData bmpData; Gdiplus::Rect rect(0, 0, g_pBitmap->GetWidth(), g_pBitmap->GetHeight()); g_pBitmap->LockBits( rect, Gdiplus::ImageLockModeWrite, PixelFormat32bppARGB, &bmpData); // Write to the temporary buffer provided by LockBits. UINT* pixels = (UINT*)bmpData.Scan0; int byteCount = bmpData.Stride * bmpData.Height; memcpy(g_pixcelMemory, pixels, byteCount); g_pBitmap->UnlockBits(&bmpData);
整体拷贝bmp 图片buffer
猜你喜欢
转载自blog.csdn.net/sukhoi27smk/article/details/79512971
今日推荐
周排行