Microsoft KB Archive/47639

Determining 2-Byte Flag Values for Graphics Device Description

PSS ID Number: Q47639 Article last modified on 11-02-1994

5.00

MS-DOS

= SUMMARY =

The Graphics Device Description portion of a Word 5.00 PRD file contains two flags that are made up of 16-bit values, DevInfo and RasterInfo. The value for the Graphics Device Description flag represents the sum of the values for the set bits. The table below gives the value for each bit.

Bit Value — —–

0      1 1       2 2       4 3       8 4      16 5      32 6      64 7     128 8     256 9     512 10 1024 11 2048 12 4096 13 8192 14 16384 15 32768

For example, if your printer is a raster device that uses a ribbon for colors, set DevInfo to 130 because the value of bit 1 (raster device) is 2 and the value of bit 7 (ribbon for colors) is 128 (2 + 128 = 130).

KBCategory: kbprint KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.