这是我的尝试(丑陋的GDI+和GDI组合...)//...BYTEpixels[BMP_WIDTH*BMP_HEIGHT*BMP_BPP];HBITMAPhBitmap;Gdiplus::BitmapcBitmap(BMP_WIDTH,BMP_HEIGHT,PixelFormat32bppRGB);Gdiplus::GraphicscGraphics(&cBitmap);Gdiplus::PencPen(Gdiplus::Color(255,255,0,0));cGraphics.DrawRectangle(&cPen,0,0,cBitmap.GetWidth()-1,cBitmap.