Important: The information in this document is obsolete and should not be used for new development.
Determining the Characteristics of a Video Device
For drawing images that are optimized for every screen they cross, your application can use theDeviceLoopprocedure. TheDeviceLoopprocedure searches for graphics devices that intersect your window's drawing region, and it calls your drawing procedure for each different video device it finds. TheDeviceLoopprocedure 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 aGDevicerecord, your application can use theTestDeviceAttributefunction.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 theSetDepthfunction, described on page 5-33.If you need to determine the resolution of the main device, you can use the
ScreenResprocedure.
Subtopics
- DeviceLoop
- TestDeviceAttribute
- ScreenRes