WxDC
A wxDC is a "device context" onto which graphics and text can be drawn.
List of DC class
- wxScreenDC is used to draw anywhere on the screen.
- wxWindowDC is used if we want to paint on the whole window (Windows only). This includes window decorations.
- wxClientDC is used to draw on the client area of a window. The client area is the area of a window without its decorations (title and border).
- wxPaintDC is used to draw on the client area as well.
- wxMemoryDC is used to draw graphics on the bitmap.
- wxPostScriptDC is used to write to PostScript files on any platform.
- wxPrinterDC is used to access a printer (Windows only).
wxPen & wxBrush Styles
WxPyWiki_-_PenAndBrushStyles.png
wxPaintDC vs wxClientDC
But there is one difference between the wxPaintDC and the wxClientDC.
- wxPaintDC should be used only from a wxPaintEvent.
- wxClientDC should not be used from a wxPaintEvent.
Favorite site
References
-
DoubleBufferedDrawing_-_wxPyWiki.pdf ↩