Contents Up Previous Next

The concept of device contexts

Device contexts, commonly referred as DCs, represent more or less anything you can draw into, i.e. a window, a bitmap, the screen, a printer, a Postscript file, most recently even an SVG file. There is one abstract base class (wxDC) which defines the interface for all other classes so that drawing code for one device context can be used for all others as well - with certain limitation as the hardware specifies (e.g. you cannot read a pixel from a printer).