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 theDeviceLoop
procedure. TheDeviceLoop
procedure searches for graphics devices that intersect your window's drawing region, and it calls your drawing procedure for each different video device it finds. TheDeviceLoop
procedure 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
gdFlags
field of aGDevice
record, your application can use theTestDeviceAttribute
function.To determine whether a video device supports a specific pixel depth, your application can also use the
HasDepth
function, described on page 5-32. To change the pixel depth of a video device, your application can use theSetDepth
function, described on page 5-33.If you need to determine the resolution of the main device, you can use the
ScreenRes
procedure.
Subtopics
- DeviceLoop
- TestDeviceAttribute
- ScreenRes