home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / CSCAP321.ZIP / PCXSPEC.TXT < prev    next >
Encoding:
Text File  |  1990-12-21  |  19.3 KB  |  868 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                        .PCX Technical Reference Manual
  10.                                  Revision 4
  11.  
  12.  
  13.          Copyright (c) 1988, ZSoft Corporation.  All rights reserved.
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. The following technical specification for the .PCX file format is used by
  22. permission of the ZSoft Corporation.  Oakland Group takes no responsibility
  23. for any information listed here.  This information was created by ZSoft and 
  24. Oakland presents it here (as received) as a courtesy to those programmers who 
  25. wish to have more information about the .PCX file format.
  26.  
  27. This document includes information for Publisher's Paintbrush (tm), PC
  28. Paintbrush (r) Plus, PC Paintbrush, and FRIEZE Graphics (tm).  (All product
  29. names are trademarks of the ZSoft Corporation.) 
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. Introduction
  37.  
  38. This booklet was designed to aid developers and users in
  39. understanding the technical aspects of the .PCX file format and
  40. the use of FRIEZE.  Any comments, questions or suggestions about
  41. this booklet should be sent to:
  42.  
  43.  
  44.      ZSoft Corporation
  45.      Technical Services
  46.      ATTN: Code Librarian
  47.      450 Franklin Rd. Suite 100
  48.      Marietta, GA  30067
  49.  
  50.  
  51.  
  52.  
  53. To down load additional information and the source for a
  54. complete Turbo Pascal program to show .PCX files on a
  55. CGA/EGA/VGA graphics display, call our BBS at (404)427-1045. 
  56. You may use a 9600 baud Telebit modem or a 2400 baud standard
  57. modem.  Your modem should be set for 8 data bits, 1 stop bit,
  58. and NO parity.
  59.  
  60.  
  61.  
  62. Image  File (.PCX) Format
  63.  
  64.  
  65.  
  66. If you have technical questions on the format, please do not
  67. call technical support.  ZSoft provides this document as a
  68. courtesy to its users and developers.  It is not the function of
  69. Technical Support to provide programming assistance.  If
  70. something is not clear, leave a message on our BBS, Compuserve,
  71. or write us a letter at the above address.
  72.  
  73. The information in this section will be useful if you want to
  74. write a program to read or write PCX files (images).  If you
  75. want to write a special case program for one particular image
  76. format you should be able to produce something that runs twice
  77. as fast as "Load from..." in PC Paintbrush.  
  78.  
  79. Image files used by PC Paintbrush product family and FRIEZE
  80. (those with a .PCX extension) begin with a 128 byte header. 
  81. Usually you can ignore this header, since your images will
  82. probably all have the same resolution.  If you want to process
  83. different resolutions or colors, you will need to interpret the
  84. header correctly.  The remainder of the image file consists of
  85. encoded graphic data.  The encoding method is a simple byte
  86. oriented run-length technique.  We reserve the right to change
  87. this method to improve space efficiency.  When more than one
  88. color plane is stored in the file, each line of the image is
  89. stored by color plane (generally ordered red, green, blue,
  90. intensity), As shown below.
  91.  
  92. Scan line 0: RRR...(Plane 0)
  93.  
  94. GGG...(Plane 1)
  95.  
  96. BBB...(Plane 2)
  97.  
  98. III...(Plane 3)
  99.  
  100. Scan line 1: RRR...
  101.  
  102. GGG...
  103.  
  104. BBB...
  105.  
  106. III...(etc.)
  107.  
  108.  
  109.  
  110. The encoding method is:
  111.  
  112.     FOR  each  byte,  X,  read from the file
  113.  
  114.         IF the top two bits of X are  1's then
  115.  
  116.             count = 6 lowest bits of X
  117.  
  118.             data = next byte following X
  119.  
  120.         ELSE
  121.  
  122.             count = 1
  123.  
  124.             data = X
  125.  
  126. Since the overhead this technique requires is, on average,  25%
  127. of the non-repeating data and is at least offset whenever bytes
  128. are repeated, the file storage savings are usually considerable
  129.  
  130. ZSoft .PCX FILE HEADER FORMAT
  131.  
  132. Byte    Item    Size    Description/Comments
  133.  
  134. 0    Manufacturer    1    Constant Flag, 10 = ZSoft .pcx
  135.  
  136. 1    Version    1    Version information
  137.  
  138.             0 = Version 2.5 of PC Paintbrush
  139.  
  140.             2 = Version 2.8 w/palette information
  141.  
  142.             3 = Version 2.8 w/o palette information
  143.  
  144.             4 = PC Paintbrush for Windows(Plus for Windows uses Ver 5)
  145.  
  146.             5 = Version 3.0 and > of PC Paintbrush and PC Paintbrush +,
  147. includes Publisher's Paintbrush 
  148.  
  149. 2    Encoding    1    1 = .PCX run length encoding
  150.  
  151. 3    BitsPerPixel    1    Number of bits to represent a pixel (per
  152. Plane)- 1, 2, 4, or 8
  153.  
  154. 4    Window    8    Image Dimensions: Xmin,Ymin,Xmax,Ymax
  155.  
  156. 12    HDpi    2    Horizontal Resolution of image in DPI*
  157.  
  158. 14    VDpi    2    Vertical Resolution of image in DPI*
  159.  
  160. 16    Colormap    48     Color palette setting, see text
  161.  
  162. 64    Reserved    1    Should be set to 0.
  163.  
  164. 65    NPlanes    1    Number of color planes
  165.  
  166. 66    BytesPerLine    2    Number of bytes to allocate for a scanline
  167. plane.  MUST be an EVEN number.  Do NOT calculate from Xmax-Xmin.
  168.  
  169. 68    PaletteInfo    2    How to interpret palette- 1 = Color/BW, 2 =
  170. Grayscale (ignored in PB IV/ IV +)
  171.  
  172. 70    HscreenSize    2    Horizontal screen size in pixels.
  173.  
  174. New field found only in PB IV/IV Plus
  175.  
  176. 72    VscreenSize    2    Vertical screen size in pixels.
  177.  
  178. New field found only in PB IV/IV Plus
  179.  
  180. 74    Filler    54    Blank to fill out 128 byte header.  Set all bytes
  181. to 0
  182.  
  183. NOTES:
  184.  
  185. All sizes are measured in BYTES. 
  186.  
  187. All variables of SIZE 2 are integers.  
  188.  
  189. *HDpi and VDpi represent the Horizontal and Vertical resolutions
  190. which the image was created (either printer or scanner); i.e. an
  191. image which was scanned might have 300 and 300 in each of these
  192. fields.
  193.  
  194.  
  195.  
  196. Decoding .PCX Files
  197.  
  198. First, find the pixel dimensions of the image by calculating
  199. [XSIZE = Xmax - Xmin + 1] and [YSIZE = Ymax - Ymin + 1].  Then
  200. calculate how many bytes are required to hold one complete
  201. uncompressed scan line:
  202.  
  203. TotalBytes = NPlanes * BytesPerLine
  204.  
  205. Note that since there are always an even number of bytes per
  206. scan line, there will probably be unused data at the end of each
  207. scan line.  TotalBytes shows how much storage must be available
  208. to decode each scan line, including any blank area on the right
  209. side of the image.  You can now begin decoding the first scan
  210. line - read the first byte of data from the file.  If the top
  211. two bits are set, the remaining six bits in the byte show how
  212. many times to duplicate the next byte in the file.  If the top
  213. two bits are not set, the first byte is the data itself, with a
  214. count of one.
  215.  
  216. Continue decoding the rest of the line.  Keep a running subtotal
  217. of how many bytes are moved and duplicated into the output
  218. buffer.  When the subtotal equals TotalBytes, the scan line is
  219. complete.  There should always be a decoding break at the end of
  220. each scan line.  But there will not be a decoding break at the
  221. end of each plane within each scan line.  When the scan line is
  222. completed, there may be extra blank data at the end of each
  223. plane within the scan line.  Use the XSIZE and YSIZE values to
  224. find where the valid image data is.  If the data is multi-plane,
  225. BytesPerLine shows where each plane ends within the scan line.
  226.  
  227. Continue decoding the remainder of the scan lines (do not just
  228. read to end-of-file).  There may be additional data after the
  229. end of the image (palette, etc.)
  230.  
  231. Palette Information Description
  232.  
  233. EGA/VGA 16 Color Palette Information
  234.  
  235. The palette information is stored in one of two different
  236. formats.  In standard RGB format (IBM EGA, IBM VGA) the data is
  237. stored as 16 triples.  Each triple is a 3 byte quantity of Red,
  238. Green, Blue values.  The values can range from 0-255, so some
  239. interpretation may be necessary.  On an IBM EGA, for example,
  240. there are 4 possible levels of RGB for each color.  Since 256/4
  241. = 64, the following is a list of the settings and levels:
  242.  
  243. SettingLevel
  244.  
  245. 0-630
  246.  
  247. 64-1271
  248.  
  249. 128-1922
  250.  
  251. 193-2543
  252.  
  253.  
  254.  
  255. VGA 256 Color Palette Information
  256.  
  257. ZSoft has recently added the capability to store palettes
  258. containing more than 16 colors in the .PCX image file.  The 256
  259. color palette is formatted and treated the same as the 16 color
  260. palette, except that it is substantially longer.  The palette
  261. (number of colors x 3 bytes in length) is appended to the end of
  262. the .PCX file, and is preceded by a 12 decimal.  Since the VGA
  263. device expects a palette value to be 0-63 instead of 0-255, you
  264. need to divide the values read in the palette by 4.
  265.  
  266. To access a 256 color palette:
  267.  
  268. First, check the version number in the header; if it contains a
  269. 5 there is a palette.
  270.  
  271. Second, read to the end of the file and count back 769 bytes. 
  272. The value you find should be a 12 decimal, showing the presence
  273. of a 256 color palette.
  274.  
  275. CGA Color Palette Information
  276.  
  277. NOTE: This is no longer supported for PC Paintbrush IV/IV Plus.
  278.  
  279. For a standard IBM CGA board, the palette settings are a bit
  280. more complex.  Only the first byte of the triple is used.  The
  281. first triple has a valid first byte which represents the
  282. background color.  To find the background, take the (unsigned)
  283. byte value and divide by 16.  This will give a result between
  284. 0-15, hence the background color.  The second triple has a valid
  285. first byte, which represents the foreground palette.  PC
  286. Paintbrush supports 8 possible CGA palettes, so when the
  287. foreground setting is encoded between 0 and 255, there are 8
  288. ranges of numbers and the divisor is 32.
  289.  
  290. CGA Color Map
  291.  
  292. Header Byte #16 
  293.  
  294. Background color is determined in the upper four bits.
  295.  
  296. Header Byte #19
  297.  
  298. Only upper 3 bits are used, lower 5 bits are ignored.  The first
  299. three bits that are used are ordered C, P, I.  These bits are
  300. interpreted as follows:
  301.  
  302. c: color burst enable - 0 = color; 1 = monochrome
  303.  
  304. p: palette - 0 = yellow; 1 = white
  305.  
  306. i: intensity - 0 = dim; 1 = bright
  307.  
  308. PC Paintbrush Bitmap Character Format
  309.  
  310. NOTE: This format is for PC Paintbrush (up to Vers 3.7) and PC
  311. Paintbrush Plus (up to Vers 1.65)
  312.  
  313. The bitmap character fonts are stored in a particularly simple
  314. format.  The format of these characters is as follows:
  315.  
  316.  
  317.  
  318. Header
  319.  
  320. font widthbyte0xA0 + character width  (in pixels)
  321.  
  322. font heightbytecharacter height  (in pixels)
  323.  
  324. Character Width Table
  325.  
  326. char widths(256 bytes) each char's width + 1 pixel of kerning
  327.  
  328. Character Images
  329.  
  330. (remainder of the file)starts at char 0  (Null)
  331.  
  332. The characters are stored in ASCII order and as many as 256 may
  333. be provided.  Each character is left justified in the character
  334. block, all characters take up the same number of bytes.
  335.  
  336. Bytes are organized as N strings, where each string is one scan
  337. line of the character.
  338.  
  339. For example, each character in a 5x7 font requires 7 bytes.  A
  340. 9x14 font uses 28 bytes per character (stored two bytes per scan
  341. line in 14 sets of 2 byte packets).  Custom fonts may be any
  342. size up to the current maximum of 10K bytes allowed for a font
  343. file.  There is a maximum of 4 bytes per scan line.Sample "C"
  344. Routines
  345.  
  346. The following is a simple set of C subroutines to read data from
  347. a .PCX file.
  348.  
  349. /* This procedure reads one encoded block from the image file
  350. and stores a count and data byte.
  351.  
  352. Return result:  0 = valid data stored, EOF = out of data in file
  353. */
  354.  
  355. encget(pbyt, pcnt, fid)
  356.  
  357. int *pbyt;/* where to place data */
  358.  
  359. int *pcnt;/* where to place count */
  360.  
  361. FILE *fid;/* image file handle */
  362.  
  363. {
  364.  
  365. int i;
  366.  
  367. *pcnt = 1;/* assume a "run" length of one */
  368.  
  369. if (EOF == (i = getc(fid)))
  370.  
  371. return (EOF);
  372.  
  373. if (0xC0 == (0xC0 & i))
  374.  
  375. {
  376.  
  377. *pcnt = 0x3F & i;
  378.  
  379. if (EOF == (i = getc(fid)))
  380.  
  381. return (EOF);
  382.  
  383. }
  384.  
  385. *pbyt = i;
  386.  
  387. return (0);
  388.  
  389. }
  390.  
  391. /* Here's a program fragment using encget.  This reads an entire
  392. file and stores it in a (large) buffer, pointed to by the
  393. variable "bufr". "fp" is the file pointer for the image */
  394.  
  395. int i;
  396.  
  397. long l, lsize;
  398.  
  399. lsize = (long )hdr.BytesPerLine * hdr.Nplanes * (1 + hdr.Ymax
  400. hdr.Ymin);
  401.  
  402. for (l = 0; l < lsize; )             /* increment by cnt below */
  403.  
  404. {
  405.  
  406. if (EOF == encget(&chr, &cnt, fp))
  407.  
  408. break;
  409.  
  410. for (i = 0; i < cnt; i++)
  411.  
  412. *bufr++ = chr;
  413.  
  414. l += cnt;
  415.  
  416. }
  417.  
  418. The following is a set of C subroutines to write data to a .PCX
  419. file.
  420.  
  421. /* Subroutine for writing an encoded byte pair (or single byte
  422. if it doesn't encode) to a file.
  423.  
  424. It returns the count of bytes written, 0 if error */
  425.  
  426. encput(byt, cnt, fid)
  427.  
  428. unsigned char byt, cnt;
  429.  
  430. FILE *fid;
  431.  
  432. {
  433.  
  434.   if (cnt) {
  435.  
  436. if ((cnt == 1) && (0xC0 != (0xC0 & byt)))
  437.  
  438. {
  439.  
  440. if (EOF == putc((int )byt, fid))
  441.  
  442. return(0);     /* disk write error (probably full) */
  443.  
  444. return(1);
  445.  
  446. }
  447.  
  448. else
  449.  
  450. {
  451.  
  452. if (EOF == putc((int )0xC0 | cnt, fid))
  453.  
  454. return (0);      /* disk write error */
  455.  
  456. if (EOF == putc((int )byt, fid))
  457.  
  458. return (0);      /* disk write error */
  459.  
  460. return (2);
  461.  
  462. }
  463.  
  464. }
  465.  
  466.    return (0);
  467.  
  468. }/* This subroutine encodes one scanline and writes it to a file.
  469.  
  470. It returns number of bytes written into outBuff, 0 if failed. */
  471.  
  472. encLine(inBuff, inLen, fp)
  473.  
  474. unsigned char *inBuff;    /* pointer to scanline data */
  475.  
  476. int inLen;/* length of raw scanline in bytes */
  477.  
  478. FILE *fp;/* file to be written to */
  479.  
  480. {
  481.  
  482. unsigned char this, last;
  483.  
  484. int srcIndex, i;
  485.  
  486. register int total;
  487.  
  488. register unsigned char runCount;     /* max single runlength is
  489. 63 */
  490.  
  491.   total = 0;
  492.  
  493.   runCount = 1;
  494.  
  495.   last = *(inBuff);
  496.  
  497. /* Find the pixel dimensions of the image by calculating 
  498.  
  499. [XSIZE = Xmax - Xmin + 1] and [YSIZE = Ymax - Ymin + 1].  
  500.  
  501. Then calculate how many bytes are in a "run" */
  502.  
  503.   for (srcIndex = 1; srcIndex < inLen; srcIndex++)
  504.  
  505. {
  506.  
  507. this = *(++inBuff);
  508.  
  509. if (this == last)     /* There is a "run" in the data, encode it
  510. */
  511.  
  512. {
  513.  
  514. runCount++;
  515.  
  516. if (runCount == 63)
  517.  
  518. {
  519.  
  520. if (! (i = encput(last, runCount, fp)))
  521.  
  522. return (0);
  523.  
  524. total += i;
  525.  
  526. runCount = 0;
  527.  
  528. }
  529.  
  530. }
  531.  
  532. else/* No "run"  -  this != last */
  533.  
  534. {
  535.  
  536. if (runCount)
  537.  
  538. {
  539.  
  540. if (! (i = encput(last, runCount, fp)))
  541.  
  542. return(0);
  543.  
  544. total += i;
  545.  
  546. }
  547.  
  548. last = this;
  549.  
  550. runCount = 1;
  551.  
  552. }
  553.  
  554. }/* endloop */
  555.  
  556.   if (runCount)/* finish up */
  557.  
  558. {
  559.  
  560. if (! (i = encput(last, runCount, fp)))
  561.  
  562. return (0);
  563.  
  564. return (total + i);
  565.  
  566. }
  567.  
  568.   return (total);
  569.  
  570. }
  571.  
  572. FRIEZE Technical Information
  573.  
  574. General FRIEZE Information
  575.  
  576.  
  577.  
  578. FRIEZE is a memory-resident utility that allows you to capture
  579. and save graphic images from other programs.  You can then bring
  580. these images into PC Paintbrush for editing and enhancement.
  581.  
  582. FRIEZE 7.10 and later can be removed from memory (this can
  583. return you up to 90K of DOS RAM, depending on your
  584. configuration). To remove FRIEZE from memory, change directories
  585. to your paintbrush directory and type the word "FRIEZE".
  586.  
  587.  
  588.  
  589. 7.00 and Later FRIEZE
  590.  
  591. The FRIEZE command line format is:
  592.  
  593. FRIEZE {PD} {Xn[aarr]} {flags} {video} {hres} {vres} {vnum}
  594.  
  595. Where:
  596.  
  597. {PD}Printer driver filename (without the .PDV extension)
  598.  
  599. {Xn[aarr]}
  600.  
  601. X=S for Serial Printer, P for Parallel Printer, D for disk file.
  602.  
  603. (file is always named FRIEZE.PRN)
  604.  
  605. n = port number
  606.  
  607. aa = Two digit hex code for which return bits cause
  608.  
  609.  an abort (optional)
  610.  
  611. rr = Two digit hex code for which return bits cause
  612.  
  613. a retry (optional)
  614.  
  615. NOTE:  These codes represent return values from serial or
  616. parallel port  BIOS calls.  For values see and IBM BIOS
  617. reference (such as Ray Duncan's Advanced MS-DOS Programming).
  618.  
  619. {flags}Four digit hex code
  620.  
  621. First Digit controls Length Flag
  622.  
  623. Second Digit controls Width Flag
  624.  
  625. Third Digit controls Mode Flag
  626.  
  627. Fourth Digit controls BIOS Flag
  628.  
  629. 0 - None
  630.  
  631. 1 - Dual Monitor Present
  632.  
  633. 2 - Use internal (true) B/W palette for dithering
  634.  
  635. 2 color images
  636.  
  637. 4 - Capture palette along with screen IN VGA ONLY
  638.  
  639. FRIEZE 8.08 & up ONLY)
  640.  
  641. NOTE:The length, width and mode flags are printer driver
  642. specific.  See PRINTERS.DAT on disk 1 (or Setup Disk) for
  643. correct use.  In general width flag of 1 means wide carriage,
  644. and 0 means standard width.  Length flag of 0 and mode flag of 0
  645. means use default printer driver settings.
  646.  
  647. If you need to use more than one BIOS flag option, add the
  648. needed flag values and use the sum as the flag value.
  649.  
  650. {video} Video driver combination, where the leading digit
  651. signifies the high level
  652.  
  653. video driver and the rest signifies the low level video driver
  654.  
  655. Example = 1EGA - uses DRIVE1 and EGA.DEV
  656.  
  657. {hres}Horizontal resolution of the desired graphics mode
  658.  
  659. {vres}Vertical resolution of the desired graphics mode
  660.  
  661. {vnum}Hardware specific parameter (usually number of color
  662. planes)
  663.  
  664. Note: The last four parameters can be obtained from the
  665. CARDS.DAT file, in your PC Paintbrush product directory.
  666.  
  667.  
  668.  
  669. FRIEZE Function Calls
  670.  
  671. FRIEZE is operated using software interrupt number 10h (the
  672. video interrupt call).
  673.  
  674. To make a FRIEZE function call, load 75 (decimal) into the  AH
  675. register and the function number into the CL register, then
  676. either load AL with the function argument or load ES and BX with
  677. a segment and offset which point to the function argument. Do an
  678. int 10h. FRIEZE will return a result code number in AX.  All
  679. other registers are preserved.  In general, a result code of 0
  680. means success and other values indicate errors.  However,
  681. function 20 (get FRIEZE Version) behaves differently; see below.
  682.  
  683. No.Definition Arguments
  684.  
  685. 0Reserved
  686.  
  687. 1Load Window
  688.  
  689. ES:BX - string  (filename to read from)
  690.  
  691. 2Save Window
  692.  
  693. ES:BX - string  (filename to write to)
  694.  
  695. 3Reserved
  696.  
  697. 4Reserved
  698.  
  699. 6Reserved
  700.  
  701. 7Set Window Size
  702.  
  703. ES:BX - 4 element word vector of window settings:
  704.  
  705. Xmin, Ymin, Xmax, Ymax
  706.  
  707. 8Reserved
  708.  
  709. 9Set Patterns
  710.  
  711. ES:BX - 16 element vector of byte values containing the
  712.  
  713. screen-to-printer color correspondence
  714.  
  715. 10Get Patterns
  716.  
  717. ES:BX - room for 16 bytes as above
  718.  
  719. 11Set Mode
  720.  
  721. 12, 13, 14Reserved
  722.  
  723. 15Get Window
  724.  
  725. ES:BX - room for 4 words of the current window settings
  726.  
  727. 16 Set Print Options
  728.  
  729. ES:BX - character string of printer options.
  730.  
  731. Same format as for the FRIEZE command.
  732.  
  733. 17, 18, 19Reserved
  734.  
  735. 20Get FRIEZE Version.
  736.  
  737. AH gets the whole number portion and AL gets the decimal portion
  738. of
  739.  
  740. the version number.  (eg. for Freize vesion 7.41, AH will
  741. contain 7 and
  742.  
  743. AL will contain 41.  If AH =0, you are calling a pre-7.0 version
  744. of FRIEZE).
  745.  
  746. 21Set Parameters
  747.  
  748. ES:BX points to an 8 word table  (16 bytes) of parameter
  749. settings: 
  750.  
  751. TopMargin, LeftMargin, HSize,VSize, Quality/Draft Mode,
  752. PrintHres, 
  753.  
  754. PrintVres, Reserved.
  755.  
  756. Margins and sizes are specified in hundredths  of inches.
  757.  
  758. Q/D mode parameter values:
  759.  
  760. 0 - draft print mode
  761.  
  762. 1 - quality print mode
  763.  
  764. Print resolutions are specified in DPI.
  765.  
  766. Any parameter which should be left unchanged may be filled with
  767.  
  768. a (-1) (0FFFF hex).  The reserved settings should be filled with
  769. a (-1).
  770.  
  771. 22Get Parameters
  772.  
  773. ES:BX points to an 8 word table  (16 bytes) where parameter
  774. settings
  775.  
  776. are held.
  777.  
  778. 23Get Printer Res
  779.  
  780. ES:BX points to a 12 word table (24 bytes) that holds six printer
  781.  
  782. resolution pairs.
  783.  
  784. 24Reserved (versions 8.00 & up)
  785.  
  786.  
  787.  
  788. FRIEZE Error Codes
  789.  
  790. When FRIEZE is called using interrupt 10 hex, it will return an
  791. error code in the AX register.  A value of zero shows that there
  792. was no error.  A nonzero result means there was an error.  These
  793. error codes are explained below.
  794.  
  795. 0No Error
  796.  
  797. 1Printout was stopped by user with the ESC key
  798.  
  799. 2Reserved
  800.  
  801. 3File read error
  802.  
  803. 4File write error
  804.  
  805. 5File not found
  806.  
  807. 6Invalid Header - not an image, wrong screen mode
  808.  
  809. 7File close error
  810.  
  811. 8Disk error - usually drive door open
  812.  
  813. 9Printer error - printer is off or out of paper
  814.  
  815. 10Invalid command - CL was set to call a nonexistent  FRIEZE
  816. function
  817.  
  818. 11Can't create file - write protect tab or disk is full
  819.  
  820. 12Wrong video mode - FRIEZE cannot capture text screens.
  821.  
  822.  
  823.  
  824. Technical Reference Manual
  825.  
  826.  
  827.  
  828. Including information for:
  829.  
  830. Publisher's Paintbrushr
  831.  
  832. PC Paintbrush IVTM
  833.  
  834. PC Paintbrush IV PlusTM
  835.  
  836. PC Paintbrush PlusTM
  837.  
  838. PC Paintbrushr
  839.  
  840. FRIEZETM Graphics
  841.  
  842. PaintbrushTM
  843.  
  844. Revision 4
  845.  
  846.  
  847.  
  848. ZSoft Corporation
  849.  
  850. 450 Franklin Rd. Suite 100
  851.  
  852. Marietta, GA  30067
  853.  
  854. (404) 428-0008
  855.  
  856. (404) 427-1150 Fax
  857.  
  858. (404) 427-1045 BBS
  859.  
  860.  
  861.  
  862. Copyright c 1985, 1987, 1988, 1990, ZSoft Corporation   All
  863. Rights Reserved
  864.  
  865.  
  866.  
  867.                                    
  868.