Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
既然Gdiplus::Graphics::DrawGraphics(Graphics*, x, y)不存在,那么做这样的事情的最好方法是什么?
Gdiplus::Graphics::DrawGraphics(Graphics*, x, y)
例如,创建一个 Graphics 对象,使用一个或多个不同的 DrawXXX() 方法,然后将该图形位图的内容绘制到另一个图形对象上?
HBITMAP这是否与图形对象绘制的关联对象有关?
HBITMAP
您对 Graphics 对象有错误的心理印象。它不包含任何图形,它只有可以绘制图形的方法。它保留的唯一上下文是绘制图形的位置。对于位图、屏幕、打印机,取决于对象的创建方式。本机 winapi 中的确切等价物是设备上下文,即 HDC。
请改用 Bitmap 或 GraphicsPath。或指向绘图函数的函数指针。