CDC *pDC = GetDC();
Gdiplus::Graphics graphics(pDC->m_hDC);
Gdiplus::Image SImage(L"F:\\bg.png");
Gdiplus::TextureBrush textureBrush(&SImage,
Gdiplus::WrapModeTile);
CRect rectWindow;
GetWindowRect(rectWindow);
graphics.FillRectangle(&textureBrush,
Gdiplus::RectF(0,
0,
(Gdiplus::REAL)rectWindow.Width(),
Gdiplus::REAL)rectWindow.Height()
)
);
GDI+ 平铺图像
最新推荐文章于 2021-03-02 19:22:26 发布