home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / fax067.zip / faxview.doc < prev    next >
Text File  |  1997-01-28  |  12KB  |  279 lines

  1.                                FAXVIEW.DOC
  2.  
  3.                  Short documentation for FAXVIEW.EXE
  4.  
  5. FAXVIEW is designed to work as:
  6.  
  7. 1) Viewer for images files in TIF or BMP format
  8.  
  9. 2) Printutility for images files in TIF or BMP format
  10.  
  11. 3) Realtime fax viewer for FREC
  12.  
  13. 4) Utility to create fonts for FSEND from OS/2 installed fonts
  14.  
  15. 5) Utility to change color of image and save (as BMP or TIF)
  16.  
  17.  
  18. FAXVIEW is a PM application and needs IMGPROC.DLL to work properly.
  19.  
  20. The HUFFMAN.DLL is not longer supported!
  21.  
  22. FAXVIEW accepts a few commandline options:
  23.  
  24. -GPIDRAW
  25.     Formerly, this was named '-FASTDRAW', but has changed in version 0.39a.
  26.     It is possible to influence this by 'Option' in menu.
  27.  
  28.     Normally, FAXVIEW uses a double buffering image routine to display a
  29.     bitmap on screen. Whole or (visible) parts of image are drawn by
  30.     GpiDrawBits (stretched if scaled) to a memorybitmap. This memorybitmap is
  31.     than 'copied' by WinDrawBitmap (without any streching) to screen. Many
  32.     authors of PM-applications report, that this methode is sure, but slow.
  33.     On modern (accelerated) graphic equipment, this is the fastes methode,
  34.     FAXVIEW can serve.
  35.  
  36.     As a methode of state of the art, image should be drawn (by GpiDrawBits or
  37.     GpiSetBitmapBits) to a memorybitmap and from there by WinDrawBitmap
  38.     (stretched if scaled) brought to screen. This methode has two huge
  39.     disadvantages:
  40.  
  41.     1) WinDrawBitmap IGNORES pixels if a compression of image is performed.
  42.     2) IT IS SLOW (in comparison to let GpiDrawBits do scaling).
  43.  
  44.     FAXVIEW does not use this methode!
  45.  
  46.     If using '-GPIDRAW' (or selecting it in menu), GpiDrawBits (streched if
  47.     scaled) draws directly to screen. This is reported to be very fast, but it
  48.     seems, that this is not correct. Everybody can see the difference that
  49.     image is build up in visible portions from bottom to top. It is also
  50.     reported, that some (older ?) graphic device driver can not handle this
  51.     function (if drawing directly to screen).
  52.  
  53.     The advantage of GpiDrawBits, if used to scale an image, is that this
  54.     function accepts a parameter (BBO_OR, BBO_AND and BBO_IGNORE) to handle
  55.     pixels if a compression of image is neccessary! Try it!
  56.  
  57. -IDLEPRINT
  58.     Printing is quite fast and depends on the printer device driver. Certain
  59.     printer drivers (esp if used in 'printer specific data' mode) are very
  60.     slow and blocks in fact the whole system. With this option, such drivers
  61.     will work in 'idle time', a portion of time, where no other activity
  62.     takes place. this makes the printout more timeconsumeing, but other
  63.     tasks are as fast as usual. Try with care!
  64.  
  65. -PRINT | -PRINT<QUEUENAME>
  66.     This is a switch to enable batch-print-facility of FAXVIEW. You can print
  67.     one (and ONLY one) file (single or multipage TIF or BMP) to the default
  68.     printer - this is the printer you have enabled by clicking right mouse
  69.     button on the desktops printer icon and selecting 'Set default'
  70.     (in german 'Standard')- or to 'queuename' - use excatly the same name as
  71.     directory in SPOOL is named - . No wildcards ('?' or '*') should be in
  72.     '-b<filename>'. FAXVIEW is started iconized (same as additional -ICON).
  73.  
  74.     You can use the supplied FQUEUE.CMD by Lutz Buchheister to print
  75.     incoming fax imediatly to your printer.
  76.  
  77. -FROMPAGE<startpage>
  78.     Submit pagenumber for startpage to print (no space in commandline!).
  79.  
  80. -TOPAGE<endpage>
  81.     Submit pagenumber for endpage to print (no space in commandline!).
  82.  
  83. -PAGES<pagecount>
  84.     Submit pagecount for number of pages from startpage (no space in
  85.     commandline!).
  86.  
  87.     These three keywords are only usefull if '-PRINT' is used.
  88.  
  89. -QUEUE<QUEUENAME>
  90.     Preselect a printerqueue for further working as default printer (is
  91.     highlighted in 'Printer Setup').
  92.  
  93. -PAGEDESC
  94.     If TIF-format, entries PageNo, DocumentName, ImageDescription, SoftWare
  95.     and DateTime are printed also (if exist).
  96.  
  97. -ICON
  98.     FaxView is started 'iconized', useful eg. when used as a pipe-server.
  99.  
  100.  
  101. -B <TIF_or_BMP_file> or -B<TIF_or_BMP_file>
  102. -I <TIF_or_BMP_file) or -I<TIF_or_BMP_file>
  103.     FAXVIEW will 'come up' with the file you have chosen. You can use wildcards
  104.     (* or ?). In this case only the filedialog (when selecting OPEN) will
  105.     point to the selected path. The optional blank between the switch
  106.     character and the filename has only historycal reasons.
  107.  
  108. -P <name_of_a_pipe>
  109.    Alternativ method to use FaxView in conjunction with FREC. FIRST start
  110.    FaxView (eg. FAXVIEW -P\PIPE\VIEW1 [-ICON]). FaxView will wait for FREC, if
  111.    this is called with -v\PIPE\VIEW1 too. If -ICON option is used, each time
  112.    FREC activates FaxView, FaxView is restored to screen. When FREC finishes,
  113.    FaxView will be iconized again.
  114.  
  115. -D <ID_string>
  116.     DO NOT USE THIS OPTION !!! It's mentioned here only for completeness!
  117.     FREC uses this option to 'transmit' vital values for the 'realtimemode'.
  118.     If used from the commandline, unpredictable results (eg crash of the
  119.     whole WPS) may occure!!!
  120.  
  121. -E
  122.     Normaly, FAXVIEW tries to 'collect' (partially) numerical named files (eg.
  123.     PAGEnnnn.TIF) to present as multipaged. If using this switch, each file
  124.     is treated as single page. This feature is also per default enabled for
  125.     extention *.FAX!
  126.  
  127. -ERRORLOG
  128.  
  129.     Faxview must be called with '2>ERROR.LOG' in commandline to redirect
  130.     stderr to file ERROR.LOG.
  131.  
  132.  
  133. ONLY FOR TESTING:
  134.  
  135. -K<TIFF_Compression_Scheme_for_Rawdata>
  136.  
  137.     Same as for FREC except '-k4.1' (2-D without EOL) which is not possible
  138.     for RAW-data! Default '-k3' is assumed, see also '-R' below!
  139.  
  140. -R or -R<TIFF_FillOrder_for_Rawdata>
  141.  
  142.     Default '-r1' is assumed. FAXVIEW is able to read fax rawdata as yielded
  143.     by some mailers.
  144.  
  145.     Valid values are only 1 and 2!
  146.  
  147. -HIGHRES or -LOWRES
  148.  
  149.     Raw fax data is assumed (if in 'scale-mode') in 204x196dpi (default) or
  150.     204x98dpi, as submitted by command.
  151.  
  152. -SCALE or -UNSCALE
  153.  
  154.     Overwrites the (default) setting from INI.
  155.  
  156. -S<Gamma_or_BlackTrigger>
  157.  
  158.     Values between 0.01 and 4.99 are treated as gamma values for DIFFUSED
  159.     and DITHERED representation (trigger for black is set to 127 = 50%).
  160.     Values from 5 to 254 (2 - 99%) are treated as trigger for
  161.     BLACK&WHITE (BiLevel) where gamma is set to 1.0.
  162.  
  163. If '-r' or '-k' is used, a raw fax file MUST by supplied by commandline
  164. ('-b' or '-i'). Filedialog-loading does not work properly! The commandline
  165. options described as ONLY FOR TESTING are NOT TESTED in batch printing
  166. will not work as assumed!!!
  167.  
  168.  
  169. FAXVIEW stores (if enabled) its system values (Origin, Size, Maximized,
  170. Scaled, FilePath and FileType) in FAXVIEW.INI. This file may either be located
  171. in the same drive and directory where FAXVIEW.EXE is stored or directory
  172. which is declared by SET USER_INI= in CONFIG.SYS. If no such environment is
  173. found, FAXVIEW.INI is created in X:\OS2\ where X is your OS/2 bootdrive.
  174. This may be helpful if FAXVIEW is installed on a network server and each
  175. workstation could have its own settings.
  176.  
  177. At startup, FAXVIEW searches X:\OS2\ and if there is no FAXVIEW.INI, it assumes
  178. the file is where FAXVIEW.EXE is stored (on first start, the INI file is
  179. therefore placed here). You can copy FAXVIEW.INI to the users bootdrive to fix
  180. the settings.
  181.  
  182. If printing, only the coursor changes to sign 'print in progress'. No security
  183. is done for the case you finish FAXVIEW irregulary (eg by window list or some
  184. 'killers') when printing!!!
  185.  
  186. Bug reports are wellcomed, but please do not ask for new features. FAXVIEW is
  187. primarly designed as 'realtime viewer' (and it will work perfectly :-).
  188.  
  189. Viewing TIF and BMP should also work, but printing 'may' only work.
  190.  
  191. One final word to 'Scaled' and 'Unscaled':
  192.  
  193. In 'realtime mode' you MUST use 'Unscaled' and size the image with the
  194. commandline option (-STANDARD, -PREVIEW, -LARGE or -BITS) when calling FREC!!!
  195.  
  196. TIF images (TIF) with X_Resolution NOT EQUAL to Y_Resolution (eg. fax in
  197. 'normal' = 204x98 dpi) are shown only in 'scaled' mode in right size! In
  198. 'unscaled' mode, FAXVIEW shows a 1:1 image from the source file, which could
  199. result in shrinked or enlarged (unscaled) images! This is NO BUG!
  200.  
  201. Printouts to paper (eg DIN A4) are adjusted in a way, that either the image
  202. is 'centered' if images size is less then papersize or the image shrinked
  203. to fit in page.
  204.  
  205. In order to construct faxes from text files, you may need other fonts than
  206. (internally) supplied with FSEND. FAXVIEW gives you the possibility to
  207. 'convert' PM fonts (in fact all installed fonts in OS/2) to a fonttype,
  208. FSEND can use to create a faxpage. It is strongly recommanded, to use only
  209. fixed (nonproportional) fonts. Proportional fonts are also accepted, but
  210. with a fixed character width (the maximal width a character can have).
  211.  
  212. With the supplied application FONTEDIT you can 'proportionalize' fonts and
  213. FSEND may use it. Keep in mind, that fonts may by 'copyrighted'!
  214.  
  215. One LAST word to fax rawdata files:
  216. USE FREC to convert them to TIF! FAXVIEW MAY display them, but WITHOUT any
  217. mechanism to 'resynchronise' if distorted rawdata is encountered! The
  218. possibility to hang your PM is VERY HIGH, because ABSOLUTLY NO TESTS will be
  219. done on rawdata.
  220.  
  221. Saving of an image is possible (BMP or TIF), but only the 'shown' image can be
  222. saved. So use 'Reload page' if the original contents should be saved (in cases
  223. the original is changed). When saving to an existing TIF file, the user is
  224. asked for 'Overwrite', 'Cancel' or 'Append'. If choosing 'Append', the image
  225. is appended to existing TIF but PageNumbers of this TIF (if existing) are
  226. not updated.
  227.  
  228. History
  229. *******
  230. FAXVIEW 0.39i, some minor, cosmetic changes. In 'unscaled' mode, image on
  231. screen is 1:1 as in file. The former try, to fit for unsymetric resolutions
  232. for TIF was canceled because of too much sideeffects! Logic of build up the
  233. name of the INI file was slightly changed. Now FAXVIEW.INI is the fixed name
  234. regardless, how the EXE file is (re)named.
  235.  
  236. FAXVIEW 0.39b, if printing, a single document for EACH page is generated
  237. (obviously some printer device driver have problems with larger multipaged
  238. documents).
  239.  
  240. FAXVIEW 0.39 is done, because TIFPROC.DLL has changed its name to IMGPROC.DLL
  241.  
  242. With WARP 4.0 (Merlin) if installing MultiMedia comes a MMOS2\DLL\TIFPROC.DLL
  243. which in fact is other than needed by FREC, FSEND, T2T and FAXVIEW!
  244.  
  245. Some (minor ?) bugs have been eliminated and treating of compressed BMP is
  246. done in a (very) much clever way: GpiDrawBits is used to 'decompress' bitmap
  247. ONCE if loaded. This yields in FASTER displaying and the ability, to store
  248. such BMP as TIF too.
  249.  
  250. FAXVIEW 0.38 is ready. No Lempel Ziv compression is implemented yet! Huffman
  251. (and 2-D Read) decompression is speedup by a LookUpTable algorithm (10 times
  252. faster) in IMGPROC.DLL. Well tested on WARP 4.0 (Merlin US GA).
  253.  
  254. FAXVIEW 0.37 is now up to date. Some features may go some NOT!
  255.  
  256. Take in account, that IMGPROC.DLL (the main TIF functions) is NO LONGER able
  257. to handle compression=5 (also known as LZW) because this compression (in its
  258. realisation in IMGPROC) is under patent restriction in some countries.
  259.  
  260. The author will try (in future) to rewrite whole LZ-coding (similar to CCITT
  261. V.42bis) to NOT fall under patent restrictions!
  262.  
  263. The LZW-coding (Lempel, Ziv & Welch) is patented by Terry Welch (holder is
  264. UNISYS) by 118 claims!!!
  265.  
  266. The following countries have the patent under national law:
  267.  
  268. USA, Canada, Japan, Germany, Italy, France and Great Britan.
  269.  
  270. So, if you are situated in one of the above countries and have versions of
  271. IMGPROC.DLL younger than 1.02, you MUST delete it from all of your
  272. datacarriers!
  273.  
  274. Because CCITT V.42bis shows us, that it is realy possible to handle Lempel-Ziv
  275. compression WITHOUT affect the patent of Terry Welch (assuming they use LZB,
  276. were 'B' means 'British telecom') there is hope to recreate IMGPROC to handle
  277. compression=5 in future releases.
  278.  
  279.