Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
7.3 KiB

  1. ;
  2. ; Plotter GPC data file format
  3. ;
  4. ; 1. All key value(s) for the keyword must enclose by {} brace pair.
  5. ; 2. The String must enclosed by ""
  6. ; 3. a ';' denote comment to the end of the line
  7. ; 4. Types
  8. ; a. FLAG - 1 or 0
  9. ; b. WORD - 16 bit number
  10. ; c. DWORD - 32 bit number
  11. ; d. STRING - ANSI character string, maximum size depends on keyword
  12. ; e. FORMSRC - 1. 31 byte string for the name
  13. ; 2. 2 DWORDs: size width/height (SIZEL) 1/1000mm
  14. ; ** if height is <= 25400 (1 inch) or it greater
  15. ; then DeviceSize CY then it assumes that the form
  16. ; is variable length and will reset height to
  17. ; zero (0)
  18. ; 3. 4 DWORDs: Left/Top/Right/Bottom margins in 1/1000mm
  19. ; f. CONSTANT - Pick from a set of predefined string in header file
  20. ; g. COLORINFO - Windows 2000, Windows XP and Windows Server 2003 DDI COLORINFO data structure (30 DWORDs)
  21. ; h. PENDATA - 1. One word specified 1 based pen number
  22. ; 2. constant specified predefined pen color PC_IDX_xxxx
  23. ; 3. One Word specified thickness in mm.
  24. ;
  25. ;
  26. ; *** if DeivceSize' height is <= 25400 (1 inch) then it assume that the
  27. ; device can handle variable length paper and will reset height to
  28. ; zero (0)
  29. ;
  30. ;
  31. ; Keyword Type Count Range/Size
  32. ; -------------------------------------------------------------------------
  33. ; DeviceName STRING 31 Device name
  34. ; DeviceSize DWORD 2 Device cx/cy in 1/1000mm
  35. ; DeviceMargin DWORD 4 Device L/T/R/B margin in 1/1000mm
  36. ; RasterCap Flag 1 0/1
  37. ; ColorCap Flag 1 0/1
  38. ; BezierCap Flag 1 0/1
  39. ; RasterByteAlign Flag 1 0/1
  40. ; PushPopPal Flag 1 0/1
  41. ; TransparentCap Flag 1 0/1
  42. ; WindingFillCap Flag 1 0/1
  43. ; RollFeedCap Flag 1 0/1
  44. ; PaperTrayCap Flag 1 0/1 has a main paper tray?
  45. ; RasterDPI WORD 2 X/Y Dots per Inch
  46. ; ROPLevel DWORD 1 0/1/2
  47. ; MaxScale WORD 1 0-10000 (100 times bigger)
  48. ; MaxPens WORD 1 Device
  49. ; MaxCopies WORD 1 Device
  50. ; MaxPolygonPts WORD 1 Device
  51. ; MaxQuality WORD 1 Device maximum quality levels
  52. ; PaperTraySize DWORD 2 Paper Tray width/height in 1/1000mm
  53. ; COLORINFO DWORD 30 COLORINFO data structure
  54. ; DevicePelsDPI DWORD 1 Dots Per Inch
  55. ; HTPatternSize CONSTANT 1 HT_PATSIZE_xx
  56. ; InitString STRING 255 Standard string
  57. ; PlotPenData PENDATA 32 (Max) Pen Plotter's definitions
  58. ; FormInfo FORMSRC 64 Device supported forms
  59. ;
  60. ; Following are example values for the PLOTTER characterization data
  61. ;
  62. DeviceName { "HP 7550 Plus" }
  63. DeviceSize { 279400, 1524000 } ; Device Size Max= (11" x 60")
  64. DeviceMargin { 13000, 5100, 13000, 16000 } ; Device Margin
  65. RasterCap { 0 } ; Raster able plotter
  66. ColorCap { 1 } ; Color plotter
  67. BezierCap { 0 } ; Can do bezier curve
  68. RasterByteAlign { 0 } ; Raster data need byte aligned
  69. PushPopPal { 0 } ; raster need push/pop palette
  70. TransparentCap { 0 } ; can do transparent mode
  71. WindingFillCap { 0 } ; can do winding fill
  72. RollFeedCap { 0 } ; can do roll feed
  73. PaperTrayCap { 1 } ; has paper input tray
  74. RasterDPI { 508, 508 } ; raster X/Y DPI
  75. ROPLevel { ROP_LEVEL_0 } ; ROP levels (ROP_LEVEL_0/1)
  76. PlotDPI { 1016, 1016 } ; Plotter units
  77. MaxScale { 1000 } ; Scale in 1% increment 100=100%
  78. MaxPens { 8 } ; Maximum pen it can handle
  79. MaxCopies { 1 } ; Maximum copies it can handle
  80. MaxPolygonPts { 512 } ; Maximum Polygon points in device
  81. MaxQuality { 3 } ; maximum 4 quality levels
  82. NoBitmapFont { 1 } ; Pen plotter no raster fonts
  83. RTLMonoEncode5 { 0 } ; NO RTL Mono Adapt Compression
  84. ;
  85. ; Only needed if PaperTrayCap = 1,
  86. ;
  87. PaperTraySize { 215900, 279400 } ; Letter size paper tray
  88. ;
  89. COLORINFO { 6810, 3050, 0, ; xr, yr, Yr
  90. 2260, 6550, 0, ; xg, yg, Yg
  91. 1810, 500, 0, ; xb, yb, Yb
  92. 2000, 2450, 0, ; xc, yc, Yc
  93. 5210, 2100, 0, ; xm, ym, Ym
  94. 4750, 5100, 0, ; xy, yy, Yy
  95. 3324, 3474, 10000, ; xw, yw, Yw
  96. 10000, 10000, 10000, ; RGB gamma
  97. 1422, 952, 787, ; Dye correction datas
  98. 495, 324, 248 }
  99. DevicePelsDPI { 0 } ; effective device DPI (default)
  100. HTPatternSize { HT_PATSIZE_6x6_M } ; GDI Halftone pattern size
  101. InitString { "\003;BP5,1;IN;SP0;" }
  102. ;
  103. ; Only allowed if RasterCap = 0, and must defined all pens (MaxPens)
  104. ;
  105. PlotPenData { 1, PC_BLACK }
  106. PlotPenData { 2, PC_RED }
  107. PlotPenData { 3, PC_GREEN }
  108. PlotPenData { 4, PC_YELLOW }
  109. PlotPenData { 5, PC_BLUE }
  110. PlotPenData { 6, PC_MAGENTA }
  111. PlotPenData { 7, PC_CYAN }
  112. PlotPenData { 8, PC_VIOLET }
  113. ;
  114. FormInfo { "ANSI A 8.5 x 11 in", 215900, 279400, 0, 0, 0, 0 }
  115. FormInfo { "ANSI B 11 x 17 in", 279400, 431800, 0, 0, 0, 0 }
  116. ;
  117. ;FormInfo { "ISO A4 210 x 297 mm", 210000, 297000, 0, 0, 0, 0 }
  118. ;FormInfo { "ISO A3 297 x 420 mm", 297000, 420000, 0, 0, 0, 0 }
  119. ;FormInfo { "ISO A2 420 x 594 mm", 420000, 594000, 0, 0, 0, 0 }
  120. ;FormInfo { "ISO A1 594 x 841 mm", 594000, 841000, 0, 0, 0, 0 }
  121. ;FormInfo { "ISO A0 841 x 1189 mm", 841000, 1189000, 0, 0, 0, 0 }
  122. ;FormInfo { "ISO OS A2 480 x 625 mm", 480000, 625000, 0, 0, 0, 0 }
  123. ;FormInfo { "ISO OS A1 625 x 900 mm", 625000, 900000, 0, 0, 0, 0 }
  124. ;FormInfo { "JIS B4 257 x 364 mm", 257000, 364000, 0, 0, 0, 0 }
  125. ;FormInfo { "JIS B3 364 x 515 mm", 364000, 515000, 0, 0, 0, 0 }
  126. ;FormInfo { "JIS B2 515 x 728 mm", 515000, 728000, 0, 0, 0, 0 }
  127. ;FormInfo { "JIS B1 728 x 1030 mm", 728000, 1030000, 0, 0, 0, 0 }
  128. ;FormInfo { "Arch A 9 x 12 in", 228600, 304800, 0, 0, 0, 0 }
  129. ;FormInfo { "Arch B 12 x 18 in", 304800, 457200, 0, 0, 0, 0 }
  130. ;FormInfo { "Arch C 18 x 24 in", 457200, 609600, 0, 0, 0, 0 }
  131. ;FormInfo { "Arch D 24 x 36 in", 609600, 914400, 0, 0, 0, 0 }
  132. ;FormInfo { "Arch E 36 x 48 in", 914400, 1219200, 0, 0, 0, 0 }
  133. ;FormInfo { "Arch E1 30 x 42 in", 762000, 1066800, 0, 0, 0, 0 }
  134. ;