home *** CD-ROM | disk | FTP | other *** search
/ POINT Software Programming / PPROG1.ISO / pascal / swag / printing.swg / 0004_LJ-GRPH2.PAS.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  1993-05-28  |  2.1 KB  |  58 lines

  1. >Does anyone have any code or info on how to print Graphics on an HP
  2. >Laserjet?
  3.  
  4.    The best thing to do would be to purchase the Technical Reference
  5. Manual through HP Support Materials (800)227-8164. (I don't know if this
  6. is an international number since you are in Canada) I don't own a
  7. LaserJet, but own a DeskJet and my manual sold For $21.95.  They go into
  8. great detail on the codes For all of the Text and Graphic Functions.
  9.  
  10.    There are some books on Laser Printer Graphics you could find in a
  11. bigger public library or university library that would be helpful
  12. also.
  13.  
  14.    Here are a few minor HP-PCL5 commands that will give you some
  15. capabilities to tie you over (They refer to this as Raster Graphic
  16. Mode):
  17.  
  18.  I will give these codes in hex, if you need another Format let me know )
  19.  
  20.     Start Raster Graphics
  21.       At leftmost position        1B 2A 72 30 41
  22.       At current cursor position  1B 2A 72 31 41
  23.  
  24.     end Raster Graphics           1B 2A 72 62 43
  25.  
  26.     Select Resolution
  27.       75 D.P.I.                   1B 2A 74 37 35 52
  28.       100 D.P.I.                  1B 2A 74 31 30 30 52
  29.       150 D.P.I.                  1B 2A 74 31 35 30 52
  30.       300 D.P.I.                  1B 2A 74 33 30 30 52
  31.  
  32.     Transfer Raster Graphics
  33.       Number of Bytes             1B 2A 62 #of Bytes to send# 57 #data#
  34.  
  35.    Raster Graphics can be thought of as being a one pin dot matrix
  36. Printer to an extent... think of it as drawing a horizontal line in
  37. binary:
  38.              11111111      +------+
  39.              10000001  ->  |      |
  40.              11111111      +------+
  41.  
  42. would be:
  43.           1B 2A 72 30 41
  44.           1B 2A 74 31 30 30 52
  45.           1B 2A 62 01 57 FF
  46.           1B 2A 62 01 57 81
  47.           1B 2A 62 01 57 FF
  48.           1B 2A 72 62 43
  49.  
  50. at 100 DPI For example.
  51.  
  52.    My apologies to the moderator if this is off topic, I understand the
  53. frustration resulting from buying a $500 (or $2500 in the Case of the
  54. LaserJet) Printer and not being able to do squat With it Until you can
  55. find the inFormation they should have put in the user's manual in the
  56. first place! (8->)  Dave
  57.  
  58.