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.

54 lines
2.5 KiB

  1. *Macros: PCLXLCommand
  2. {
  3. *%%% ---------------------------------------------------------------------------
  4. *%%% PCL XL Stream Header
  5. *%%% ---------------------------------------------------------------------------
  6. PCLXL_StreamHeader: ") HP-PCL XL;1;1;"
  7. + "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  8. *%%% ---------------------------------------------------------------------------
  9. *%%% BeginSession
  10. *%%% Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  11. *%%% ---------------------------------------------------------------------------
  12. PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  13. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  14. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  15. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  16. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  17. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  18. Width: %m{ RasterDataWidthInBytes }
  19. Height: %m{ RasterDataHeightInPixels }
  20. DataSize: %l{ NumOfDataBytes }
  21. FntHeight: %l{ FontHeight*600/TextYRes }
  22. FntNextGlyph: %l{ NextGlyph }
  23. *%%% ---------------------------------------------------------------------------
  24. *%%% BeginRaster
  25. *%%% ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  26. *%%% SourceWidth(uint16) & SourceHeight(uint16)
  27. *%%% ---------------------------------------------------------------------------
  28. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  29. + =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  30. + =uint16 =Width =attr_ubyte =SourceWidth
  31. + =uint16 =Height =attr_ubyte =SourceHeight
  32. + =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  33. + =BeginImage
  34. + =ubyte =eNoCompression =attr_ubyte =CompressMode
  35. + =ubyte "<00>" =attr_ubyte =StartLine
  36. + =uint16 =Height =attr_ubyte =BlockHeight
  37. + =ReadImage
  38. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  39. DestinationX: %l{DestX}
  40. DestinationY: %l{DestY}
  41. DestinationXRel: %l{DestYRel}
  42. DestinationYRel: %l{DestXRel}
  43. NumOfCopy: %l{NumOfCopies}
  44. PrintDir: %l{PrintDirInCCDegrees}
  45. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  46. }