home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 15 / CDACTUAL15.iso / cdactual / program / basic / PGL.ZIP / README.DOC < prev    next >
Encoding:
Text File  |  1992-03-22  |  20.4 KB  |  400 lines

  1. ;-----------------------------------------------------------------------;
  2. ;  PRINTER SUPPORT       **PGL TOOLKIT**        PRINTER SUPPORT         ;
  3. ;-----------------------------------------------------------------------;
  4. ;            Printer Support Libraries For MS-DOS Compilers             ;
  5. ; Complete graphics engine for producing high quality printed graphics! ;
  6. ;-----------------------------------------------------------------------;
  7. ; DESCRIPTION:                                                          ;
  8. ; PGL ToolKit can create high resolution 300dpi full page output using  ;
  9. ; as little as 8K of memory to draw in! Protected mode memory not       ;
  10. ; required! This is the technology used by the big guys! If you do any  ;
  11. ; MS-DOS graphics programming this is THE tool for getting printed      ;
  12. ; output!  Source code available, Unix version available too! The       ; 
  13. ; PGL ToolKit is used by NASA,TRW,ROCKWELL,NOVELL,Universities, and     ;
  14. ; by commercial software products!  Now you too can utilize the proven  ;
  15. ; technology of the PGL ToolKit.                                        ;
  16. ;-----------------------------------------------------------------------;
  17. ; LANGUAGE SUPPORT: Truly versatile compiler support!                   ;
  18. ;    C, Fortran, Pascal, Basic, Clipper, Assembly                       ;
  19. ;-----------------------------------------------------------------------;
  20. ; COMPILER SUPPORT: Libraries are included for all of these compilers!  ;
  21. ;    Turbo C/C++, Borland C/C++,  Microsoft C, Quick C, WATCOM C        ;
  22. ;    WATCOM C/386                                                       ;
  23. ;    Turbo Pascal,                                                      ;
  24. ;    Quick Basic, Microsoft BASIC PDS                                   ;
  25. ;    Clipper                                                            ;
  26. ;    Lahey Fortran F77L, Lahey Fortran F77L/EM32                        ;
  27. ;    Microsoft Fortran                                                  ;
  28. ;    WATCOM FORTRAN/386                                                 ;
  29. ;-----------------------------------------------------------------------;
  30. ; DOS EXTENDERS:                                                        ;
  31. ;   The ToolKit has been tested with the following DOS extenders        ;
  32. ;                          RUN286 & RUN386                              ;
  33. ;                          OS/286 & OS/386                              ;
  34. ;                          DOS4G & DOS4GW                               ;
  35. ;   The ToolKit should work with any DOS extender supporting DOS!       ;
  36. ;-----------------------------------------------------------------------;
  37. ;  GRAPHICS LIBRARIES SUPPORTED: Supports any graphics library!         ;
  38. ;    Genus GX                                                           ;
  39. ;    Metawindow                                                         ;
  40. ;    Fastgraph                                                          ;
  41. ;    BGI                                                                ;
  42. ;    Microsoft Graphics                                                 ;
  43. ;-----------------------------------------------------------------------;
  44. ;  PRINTERS SUPPORTED: Supports over 300 printers!                      ;
  45. ;    DOT MATRIX(9&24 pin)/LASERJET/PAINTJET/DESKJET/POSTSCRIPT          ;
  46. ;    BLACK/WHITE  & COLOR                                               ;
  47. ;-----------------------------------------------------------------------;
  48. ; FILE FORMATS:                                                         ;
  49. ;    OUTPUT TO PCX FILES                                                ;
  50. ;-----------------------------------------------------------------------;
  51. ;                   BBS-Unregistered Shareware Release                  ;
  52. ;       Easy to Use!    Extremely versatile!    Excellent Product!      ;
  53. ;          A must have for every DOS graphics programmer!!!             ;
  54. ;-----------------------------------------------------------------------;
  55. ;                   Copyright 1991 (C) AnSoft,Inc.                      ;
  56. ;                     Voice/Fax - 301-470-2335                          ;
  57. ;       This shareware product released for BBS's and shareware by      ;
  58. ;       AnSoft,Inc. These shareware files may be freely distributed.    ;
  59. ;-----------------------------------------------------------------------;
  60. ;                            Jan 1,1992                                 ;
  61. ;-----------------------------------------------------------------------;
  62.                                                                     
  63. SHAREWARE DISTRIBUTION MATERIALS-----------------------------------------
  64. You should find enclosed with the Un-Registered PGL ToolKit package the 
  65. following items:
  66.  
  67.         1)  PGL ToolKit manual on disk( about 300 pages.)
  68.         2)  Language Library Archives.
  69.         3)  Registration info (this document), If you use this
  70.             product be sure to register!  No register - No support!
  71.  
  72. ABOUT PGL TOOLKIT(Commercial release)--------------------------------------
  73. The full blown PGL ToolKit product is sold commercially, and includes 
  74. libraries for all supported languages (C, Fortran, Basic, Pascal, 
  75. Clipper, and Assembly), and allows you to freely distribute all printing
  76. utilities, drivers and fonts with your application.  The Commercail 
  77. release also includes a MENU driven printing utility for viewing and 
  78. printing your drawing files.  It retails for $195.00.  
  79.  
  80. ABOUT PGL TOOLKIT(Shareware release)--------------------------------------
  81. We are making a reduced version of the PGL ToolKit available through 
  82. shareware.  That is we have placed a Beta version of the ToolKit on Bulletin
  83. boards and allow this version to be passed around freely, for you to try out.
  84. It is SHAREWARE NOT FREEWARE, should you decide to use it you should either 
  85. register the shareware version or purchase the commercial release!
  86.  
  87. THE REGISTERED SHAREWARE RELEASE------------------------------------------
  88. The registered shareware release provides libraries for a single language 
  89. only, and does not include the menu driven printing utility, but is otherwise 
  90. identical to the commercial release!
  91.  
  92. THE UN-REGISTERED SHAREWARE BBS RELEASE------------------------------------
  93. Each of the un-registered shareware release provides a library for a single 
  94. language, the libraries are the early BETA cycle libraries.  They are fully 
  95. functional except for the following features that are not included:
  96.         
  97.         a) No Filled Polygon support.
  98.         b) No Bitmap support(no screen and offscreen printing of bitmaps).
  99.         ---------------
  100.         c) No PostScript support, drivers/support.
  101.         d) No PCX file support, drivers/support.
  102.         ---------------
  103.         e) A single font is included in BBS shareware. This means
  104.            any of the example programs that use fonts will only
  105.            display the SMALL font.  If you use GPUS.EXE with
  106.            a screen driver to display any of the *.PLT example
  107.            files on screen you will get a 'Font File Not Found'
  108.            message.  
  109.  
  110. The entire 300 page manual is included on the disk.
  111.  
  112. You may use the Polygon and Bitmap support functions, but you wont get 
  113. anything on your printout with 'pgPolygon', 'pgBMInit', 'pgBMData',
  114. and 'pgBMEnd' functions.
  115.  
  116. The Postscript driver EPS.DRV, and PCXxxx.DRV drivers are not included.
  117.  
  118. The Unregistered shareware release includes a small font only, there
  119. are 6 others included with the registered version.  These are stroked
  120. fonts!  High quality Filled Outline fonts are on the way, call for info!
  121.  
  122. THE REGISTERED SHAREWARE RELEASE------------------------------------
  123. The registered shareware release of the PGL ToolKit includes the bound
  124. 3-ring IBM style binder with about 300 pages of documentation.  The
  125. shareware version of the ToolKit is available only from AnSoft,Inc.
  126.  
  127. The registered shareware version includes:
  128.  
  129.         1) The commercial release manual: 3-ring binder, 
  130.            300 pages of documentation.
  131.         2) A single linkable library for any one language you specify,
  132.            either C, Fortran, Pascal, Basic, Clipper, or Assembler. The
  133.            library is the same as the full blown commercial release but
  134.            only supports one language.  The commercial release includes
  135.            libraries for all supported compilers + 32 Bit C and Fortran.
  136.         3) Full graphics support including Polygons.
  137.         4) Full bitmap support.
  138.         5) Full Postscript support.
  139.         6) Full PCX support.
  140.  
  141. The registered shareware version cost $95.00 + Shipping, to order
  142. call AnSoft,Inc. at 301-470-2335 (Voice/Fax).
  143.  
  144. THE COMMERCIAL RELEASE------------------------------------------------
  145. The complete commercial release includes support for all languages, that
  146. is C, Fortran, Pascal, Basic, Clipper, and Assembler, and a menu driven
  147. version of the printing utlity.  The commercial release costs $195.00. 
  148. Put this on your software shelf and you have printer support for life!
  149.  
  150. REDISTRIBUTION OF MATERIALS------------------------------------------
  151. Of course the shareware/BBS disks may be freely distributed.  There
  152. are seperate disks/archives for each language in shareware.
  153.  
  154. BBS SHAREWARE INSTALLATION--------------------------------------------
  155. Make a subdirectory for the PGL software,
  156.  
  157. C:>MD PGL
  158. C:>CD PGL
  159.  
  160. Copy the shareware archive to a subdirectory on your disk, 
  161.  
  162. C:\PGL>COPY A:\PGLSW.ZIP *.*
  163.  
  164. decompress it by using a PKZIP compatible decompression program,
  165.  
  166. C:\PGL> PKUNZIP PGLSW
  167.  
  168. the manual and system drivers and font are now decompressed. You must also 
  169. decompress the language libraries, include files, and example files.
  170. To do this type 
  171.  
  172. C:\PGL> PKUNZIP ARCHIVE 
  173.  
  174. where ARCHIVE is defined below:
  175.  
  176. LANGUAGE    Archive 
  177. --------    ------------------        
  178.  C          PGLCS(.ZIP)
  179.  FORTRAN    PGLFS(.ZIP)     
  180.  BASIC      PGLBS(.ZIP)     
  181.  PASCAL     PGLPS(.ZIP)     
  182.  CLIPPER    PGLCLS(.ZIP)     
  183.  ASSMBLY    PGLCS(.ZIP)      
  184.  
  185.  i.e to decompress the BASIC libraries type;
  186.  
  187.  C:\PGL> PKUNZIP PGLBS
  188.  
  189. Be sure to create a subdirectory first(like C:\PGL, i.e. MD PGL, CD PGL), 
  190. and copy the archive to that subdirectory.  Note that GPU.EXE is called 
  191. GPUS.EXE on the shareware disks.  The manual is called PGLSW.MAN and is 
  192. an ascii file.  
  193.  
  194. Note that all files associated with the PGL ToolKit are in the current 
  195. subdirectory.  
  196.  
  197. Be sure to set the GPU environment variable, i.e.
  198.  
  199. GPUS uses the GPU environment variable, and/or command line -
  200.  
  201.         C:>SET GPU=/P:C:\PGL /D:HPLJET /R:2 /O:P /Z:H
  202.  
  203. The GPU environment variable can contain the FONT/DRIVER path, and info
  204. about the default page setup for printing.   The example shows the Path
  205. as C:\PGL, the Device as HPLJET, the Resolution on setting 2(150dpi), 
  206. Orientation set to Portrait, and page size of Half Page, using default
  207. margins.  For more info on GPU, see the manual.  The GPU environment
  208. variable does not have to be set for GPU to work.  
  209.  
  210. TECH Support----------------------------------------------------------
  211. There is no support for the Un_registered sharware version, REGISTER
  212. for support!
  213.  
  214. Please read the manual, it has much info about the Toolkit and its 
  215. libraries, and utility programs!  If your questions aren't answered
  216. in the maunual, then call us. We can be reached at 301-470-2335
  217. 9am-5pm EST.  The phone number is a voice/fax, if were not in send a
  218. fax, we'll study the problem, and/or fax/phone answers to your questions.
  219.  
  220. LANGUAGE SUPPORT-------------------------------------------------------
  221. Each language is installed with libraries, an include file, and some
  222. example programs (including some output drawing files). 
  223.  
  224. You should have one subdirectory for each language supported:
  225.  
  226. LANGUAGE  DIRECTORY   INCLUDE     LIBRARY         COMPILERS
  227. -----------------------------------------------------------------------------
  228. C         C           PGL.H       PGL_CL.LIB      Turbo/Borland-C/C++
  229.                                                   WATCOM C
  230.                                                   Microsoft-C & Quick C
  231. Not in shareware                  PGLWC3S.LIB     WATCOM C/386 Stack Model
  232.  "  "   "                         PGLWC3R.LIB     WATCOM C/386 Register Model
  233. FORTRAN   FOR         PGL.FOR     PGL_MF.LIB      MS-FORTRAN 
  234.                                   PGL_LF.LIB      LAHEY FORTRAN 
  235. Not in shareware                  PGL_LF3.LIB     LAHEY FORTRAN EM/32
  236. PASCAL    TP          -           PGL.TPU         TURBO PASCAL 
  237. BASIC     BAS         PGL.BAS     PGL_QB.LIB      QUICK BASIC
  238.                                   PGL_B7.LIB      BASIC PDS 
  239. CLIPPER   CLIP        PGL.PRG     PGL_CL87        CLIPPER '87
  240.                                   PGL_CL5         CLIPPER 5.x
  241. ASSEMBLY   .......use the C libraries             TASM, MASM
  242.  
  243. Within each language directory you should find one or more libraries,
  244. an include file, and some examples (with drawing files).  All languages
  245. except Turbo Pascal require you to use one of the 'PGL' include files 
  246. listed above.  You must also link the appropriate library.  Turbo Pascal  
  247. programmers must specify the PGL unit in the USES statement of your
  248. Pascal program.  Quick Basic programmers must create your own Quick 
  249. libraries, if you want them (see your Quick Basic documentation).
  250.  
  251. Corrections to the manual:
  252. --------------------------
  253.  
  254. Polygons ---------------------------------------------------------------
  255. The manual indicates that polygons cannot be self intersecting, this is 
  256. incorrect. Polygons may be complex and self intersecting. 
  257.  
  258. Drivers ----------------------------------------------------------------
  259. HPDJETC - The manual indicates that the HPDJETC is supported in 8 and 16
  260. color modes, this is incorrect.  Currently the HPDJETC is only supported
  261. as a Black and White device.
  262.  
  263. EPS- The Encapsulated Postscript file format is not listed on page 8-1 as
  264. a supported printer, this is an omission.  The EPS driver is documented 
  265. throughout the rest of the manual.
  266.  
  267. MCGA/VGAMONO- These drivers are identical, you may use either of them.
  268.  
  269. All screen drivers only support b&w or 16 colors.  There is currently no
  270. 256 color support with the PGL screen drivers.  Although you can use the
  271. PostScript converter (PGL2PS.EXE), the PaintJet/XL, or any of the PCX...
  272. color drivers to print drawings with 256 colors.
  273.  
  274. PCXC8- Was not documented in the manual. This driver is identical to the 
  275. PCXC driver ( 3-resolutions, 75,150 & 300 dpi) except it supports 256
  276. color PCX files, where the PCXC driver only supports 16 colors.
  277.  
  278. PCXEGAC, PCXVGAC, PCXSVGAC, PCX8514C - The manual indicates that these
  279. drivers ignore the resolution parameter, this is incorrect. These 
  280. drivers support 16 colors in resolution 0, and 256 colors in resolution 1.
  281. Note that these drivers ignore Page Orientation, Page Size, and Margin
  282. control, they are designed to produce PCX files that exactly match various
  283. screen resolutions, and colors.  These drivers are included because many
  284. programs that read PCX files can only handle images that exactly match a
  285. standard graphics screen size!  
  286.  
  287. The PCX, PCXC and PCXC8 drivers may be used like other printer drivers, 
  288. these drivers use the Page Size, Page Orientation, and Margins, allowing 
  289. you to create any size PCX bitmap images. 
  290.  
  291. GPU------------------------------------------------------------------------
  292. The manual indicates that the Buffer size parameter (/B) is limited to values
  293. between 8 (8K) and 64 (64K), this is incorrect.  GPU accepts Buffer size
  294. values between 8 and 640.  Practical values are between 64 and 256.  Too 
  295. little memory slows things down alot, too large a Buffer uses all the memory 
  296. and if you use fonts or polygons you may not have enough.  GPU uses 64K by
  297. default.
  298.  
  299. GPMENU---------------------------------------------------------------------
  300. GPMENU tries to allocate a 128K buffer for printing, and may additionlly
  301. allocate memory for fonts and polygons, currently there are no options 
  302. available to change the default buffer request.
  303.  
  304. DRAWING FILE NAMES---------------------------------------------------------
  305. Drawing files may have any name and extension.  The examples included with
  306. the ToolKit use .PLT and .PGL extensions.  You should probably use the .PGL
  307. extension if only to make obvious what the files are.  Also you may type any
  308. PGL drawing files to the screen, and you will see an AnSoft-PGL signature.
  309. You cannot readily edit a drawing file with a text editor!
  310.  
  311. BITMAPS--------------------------------------------------------------------
  312.  The Toolkit has some basic support for printing BITAMP images. You can also
  313.  print Screen or Off-Screen bitmaps produced by other graphics packages!
  314.  The Toolkit packs and compresses these bitmaps to minimize the size of
  315.  drawing files. Currently bitmaps with up to 8-bits per pixel (256 colors)
  316.  are supported. 
  317.  
  318.  When printing in Landscape, bitmaps may print slower than
  319.  when printing in Portrait format.  Using a large printing buffer (/B=256)
  320.  can help speed up Landscape printing.
  321.  
  322.  Bitmaps are always printed using an Opaque write operation, meaning that
  323.  bitmaps overwrite existing pixels in the output image.  You may however
  324.  fill images on top of bitmap images using either Opaque or Transparent write
  325.  operations.
  326.  
  327.  See pgBMInit, pgBMData, and pgBMEnd.  Bitmaps can be tiny icon sized, or 
  328.  full page megabyte monsters!  The bitmap support is very general, allowing
  329.  PGL to support any 3rd party screen graphics library. 
  330.  
  331.  Page 6-7 
  332.  replace "You may then create a bitmapped image sized xmax by ymax..."
  333.  with "You may then create a bitmapped image sized xmax+1 by ymax+1..."
  334.  
  335. ADDITIONAL COMPILERS SUPPORTED----------------------------------------------
  336. The manual makes no reference to any 32 bit compilers, the ToolKit currently 
  337. supports the WATCOM C/386 C compiler, and the Lahey F77L-EM/32 Fortran 
  338. compiler.
  339.  
  340. WATCOM C/386-------------------
  341.     PGLWC3S.LIB- Stack Passing conventions (/3s)
  342.     PGLWC3R.LIB- Register passing conventions (/3r)
  343.  
  344. INCLUDE-------
  345. Use the PGL.H include file with WATCOM C/386.
  346.  
  347. These libraries were built using:
  348.          WCC386 -zp1 -s -3r 
  349.          and 
  350.          WCC386 -zp1 -s -3s 
  351.  
  352. The WATCOM C/386 libraries are built with standard C source, and may be
  353. used with any DOS extender supported by WATCOM C/386.
  354.  
  355.  
  356. LAHEY F77L-EM/32--------------
  357.  
  358.    PGL_LF3.LIB- Use with either /K(use Weitek) or /nK(use 80387) switches.
  359.  
  360. INCLUDE-------
  361. Use the PGL.FOR include file with the Lahey EM/32 compiler.
  362.  
  363. C----------------------------
  364. The manual indicates the C library PGL_CL.LIB was built using a large memory
  365. model, this is incorrect.  The C library PGL_CL.LIB is built using a 
  366. large memory model but uses it's own data segment. This library works 
  367. correctly with huge memory models, as well as small, medium, compact, and 
  368. large models. Note, this library makes no calls to any C library functions,
  369. it uses its own I/O routines which use the DOS INT 0x21 services.
  370.  
  371. Other 16 Bit Dos C compilers----------------------------------------------
  372. The C library PGL_CL.LIB may be used with any Compiler that can use the 
  373. standard Microsoft/Borland C calling conventions, and memory models.
  374. The PGL_CL.LIB library should be used with any of the small,medium,compact,
  375. large or huge memory models.  If you have trouble, try using the large memory
  376. model.  
  377.  
  378. DOS EXTENDERS  16 Bit-----------------------------------------------------
  379. The libraries work with programs compiled to use either PHARLAP RUN286, or
  380. ERGO OS/286.  Actually any DOS EXTENDER may be used so long as it supports
  381. the DOS INT 0x21 services, exactly as MS-DOS does.
  382.  
  383. EXPANDED MEMORY-----------------------------------------------------------
  384. The printing utilities, GPU and GPMENU, both can use up to 64K of
  385. expanded memory for the printing buffer. They can use up to 640K
  386. of DOS memory.  99% of the time you should have no problem using
  387. expanded memory, however, if your computer hangs when using expanded 
  388. memory, you may have a memory conflict.  That is some program may be using 
  389. the expanded memory page frame without correctly using the Expanded
  390. Memory Manager.  This can happen on networks, or sometimes by TSR's.
  391. This type of problem is not within ANSOFT's control to fix.  The 
  392. PGL ToolKit uses the LIM EMM documented procedures to use expanded
  393. memory, and most other programs do too!   If all else fails, and
  394. you cannot figure out why your system is locking up, just don't use 
  395. EMM.  GPU and GPMENU use DOS memory by default, not expanded memory.
  396.  
  397.  
  398. PostScript Color Output-----------------------------------------------
  399. Registered version only!
  400.