home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PCXPIC10.ZIP / READ.ME < prev   
Encoding:
Text File  |  1991-05-07  |  1.9 KB  |  53 lines

  1. PCX2BAS.EXE - Converting CGA .PCX images to BASIC BLOAD (.PIC) format
  2.  
  3. Compiled with:  Turbo C++ v1.00
  4.  
  5.  
  6. Once again, a client's wishes were fulfilled.  This time, I had a person
  7. that *loves* working with Deluxe Paint II Enhanced, but still programs in
  8. BASIC and is more familiar with BASIC's BLOADing of images and shapes.  So,
  9. she needed a way to go from .PCX or .LBM format to a straight memory
  10. dump.  Since EA's convert program didn't provide for it...I did.
  11.  
  12. BAS2PCX assumes that the input file is a CGA (mode 4) .PCX file.  It
  13. simply loads the file, then performs a straight memory save, creating
  14. the familiar BLOAD memory image.
  15.  
  16. To use PCX2BAS, just type:
  17.  
  18.     pcx2bas <filename> [WAIT]
  19.  
  20. where:
  21.  
  22.     <filename> - Name of CGA .PCX file.  If no extension is given
  23.              .PCX is assumed.
  24.  
  25.     [WAIT]     - Optional parameter to beep and wait before clearing
  26.              the screen and exiting on completion.  Leave this
  27.              off if you're running pcx2bas via the PCX2PIC.BAT file
  28.              (for multiple conversions).
  29.  
  30. The coded is heavily commented, so it should be interesting reading.  This
  31. little adventure serves several purposes:
  32.  
  33. 1) You get a look at several CGA manipulation routines.  A neat start for
  34.    people who want to mess around with PIC files on the CGA screen.  You
  35.    also get an example of a faster CGA-screen RAM accessing system,
  36.    utilizing a "pointer table".  Feel free to try this idea and expand
  37.    on it, as it makes working with the "split-plane" CGA memory map
  38.    relatively transparent.
  39.  
  40. 2) You get an example of using Turbo C++ pseudo variable to access the
  41.    CPU registers directly.
  42.  
  43. 3) You get a chance to see how to decode a .PCX file (specifically, the
  44.    CGA video format).
  45.  
  46. If you have any comments (please, nothing about the value of this program.
  47. If it's worthless to you, I'm sorry.  I probably won't use it again myself
  48. . . . but then, you never know), drop me a line.
  49.  
  50.  
  51. Scott J. Walter
  52. GEnie:  S.Walter4
  53.