Microsoft KB Archive/47639

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:24, 12 August 2020 by X010 (talk | contribs) (X010 moved page Microsoft KB Archive/Q47639 to Microsoft KB Archive/47639 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.