Important: The information in this document is obsolete and should not be used for new development.
Determining the Characteristics of a Video DeviceFor drawing images that are optimized for every screen they cross, your application can use the
DeviceLoopprocedure searches for graphics devices that intersect your window's drawing region, and it calls your drawing procedure for each different video device it finds. The
DeviceLoopprocedure provides your drawing procedure with information about the current device's pixel depth and other attributes.
To determine whether the flag bit for an attribute has been set in the
gdFlagsfield of a
GDevicerecord, your application can use the
To determine whether a video device supports a specific pixel depth, your application can also use the
HasDepthfunction, described on page 5-32. To change the pixel depth of a video device, your application can use the
SetDepthfunction, described on page 5-33.
If you need to determine the resolution of the main device, you can use the