2.1.5 Information Contexts

The CreateIC function creates an information context for a device. An infor-mation context is a device context with limited capabilities; it cannot be used to write to the device. An application uses an information context to gather information about the selected device. Information contexts are useful in large applications that require memory conservation.

By using an information context and the GetDeviceCaps function, you can obtain the following device information:

Device technology

Physical display size

Color capabilities of the device

Color-palette capabilities of the device

Drawing objects available on the device

Clipping capabilities of the device

Raster capabilities of the device

Curve-drawing capabilities of the device

Line-drawing capabilities of the device

Polygon-drawing capabilities of the device

Text capabilities of the device