如何把一个Bitmap,复制到另一个Bitmap-CSDN论坛

2025-05-10 00:47:25
推荐回答(1个)
回答1:

用gdi+
Bitmap bmp("xxx.png");
Bitmap* cpBmp = bmp.Clone(0, 0, bmp.GetWidth(), bmp.GetHeith(), PixelFormatDontCare);
//...
delete cpBmp;