GCDC、GraphicsContext和DC有什么区别

2024-09-28 21:26:50 发布

您现在位置:Python中文网/ 问答频道 /正文

从文档(Phoenix)中,我了解到GCDC是位于GraphicsContext之上的设备上下文层,而GraphicsContext又是位于DC之上的一层(PaintDC、ClientDC、WindowDC、ScreenDC、MemoryDC或PrinterDC)。你知道吗

这两者的主要区别是什么?我注意到PaintDC中没有抗锯齿功能,但这不是唯一的区别,不是吗?你知道吗

以下是文件中的内容:

wxWidgets offers an alternative drawing API based on the modern drawing backends GDI+, CoreGraphics and Cairo. See GraphicsContext, GraphicsRenderer and related classes. There is also a GCDC linking the APIs by offering the DC API on top of a GraphicsContext.

这是否意味着GraphicsContext缺少DC提供的一些功能,而GCDC填补了这一空白?你知道吗


Tags: andthe文档功能apiondc区别