home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / grphutil / leadjpeg.arj / README.1ST < prev    next >
Encoding:
Text File  |  1992-05-31  |  43.4 KB  |  733 lines

  1.                              LEADTOOLS - DEMO
  2.           Copyright c LEAD Technologies, Inc. 1992 ALL RIGHTS RESERVED
  3.  
  4.  
  5. Thank you for requesting LEAD Technologies' demo program of LEADTOOLS.  The
  6. demo program contains 3 .EXE files which demonstrates some of the functions
  7. that are included with LEADTOOLS DOS.  The demo program is designed to give
  8. you a working understanding of LEAD Technologies' image processing
  9. capabilities, and how the image processing functions may be incorporated
  10. in your application.
  11.  
  12. This diskette contains the following files:
  13.  
  14. README.1st    The file you are currently reading.
  15.  
  16. DEMO.C        The source code of the mmstdemo.EXE file
  17.  
  18. DEMO.EXE      DEMO.C compiled and linked with LEADTOOLS "C" run-time library.
  19.  
  20. LEADCOMP.C    The source code of LEADCOMP.EXE.
  21.  
  22. LEADCOMP.EXE  DOS File to file software compression utility compiled
  23.               and linked with with LEADTOOLS "C" run-time library.
  24.  
  25. LEADECOM.C    The source code of LEADCOMP.EXE.
  26.  
  27. LEADCOMP.EXE  DOS File to file software decompression utility compiled
  28.               and linked with with LEADTOOLS "C" run-time library.
  29.  
  30. LEADSHOW.C    The source code of LEADCOMP.EXE.
  31.  
  32. LEADSHOW.EXE  DOS File to screen software decompression utility compiled
  33.               and linked with with LEADTOOLS "C" run-time library.
  34.               We did not link the Showing program with all the librarys
  35.               for example LEADSHOW support only ET4000 at 32,000 colors
  36.               if a RAM DAC was installed and TARGA at 32,000 and 16,7777000
  37.               colors and all other cards at only 256 colors. The library 
  38.               supports many more true color card and is capibal of many more
  39.               that what is shown here. 
  40.  
  41. COMPRESS.TXT  Lists most graphic file formats supported by LEADTOOLS.
  42.  
  43. LIBRARY.TXT   Lists most library files that are shipped with LEADTOOLS.
  44.  
  45. Ship.cmp      Is a test image that was sent to LEAD from Adobe.  The original
  46.               is a 24 bit TIFF with a size of 1.14 Mbytes, and was compressed
  47.               using this LEADTOOLS DEMO with the QS setting.  Note that you can
  48.               decompress this image and recompress it.  Also note that the
  49.               compression Q factors are selectable.
  50.  
  51. Girl.cmp      Is an image captured with a JVC RGB camera and a Truevision
  52.               TARGA+ board.  The original is a 32 bit TGA file with a size of
  53.               983 Kbytes.  It was also compressed using this DEMO program with
  54.               the setting of QS.
  55.  
  56.  
  57. Q factor setting quide.
  58.  
  59.               Typing in a factor of 1 to 255 will alter the Q factor and
  60.               therefore change the image file size and the image quality. A
  61.               factor of 1 will produce the best image quality and the largest
  62.               file size, while a factor of 255 will produce the smallest file
  63.               size and lowest image quality.
  64.  
  65.               LEAD also has defined several Q factor settings at breaks between
  66.               the size vs. quality trade off.  The selections are given in
  67.               abbreviated form in the EXE program.  The abbreviations
  68.               represent the following:
  69.                  PQ  - Perfect Quality (with certain images a lossless process)
  70.                  QFS - Quality is far more important than size.
  71.                  QMS - Quality is more important than size.
  72.                  QS  - Quality and size are equally important.
  73.                  SQS - Size is more important than quality (sharp - images
  74.                        with sharp contrasts in color or content, or with text).
  75.                  SQT - Size is more important than quality (less tiling - for
  76.                        images with a lot of the same color tones, such as
  77.                        portraits).
  78.                  MCQ - Maximum compression with quality still important.
  79.                  MC  - Maximum compression.
  80.  
  81.  
  82. ALL .EXE programs were not designed as an end user product.  It is a quick
  83. collection of calls to LEADTOOLS functions.  Menus were not included to avoid
  84. confusion when evaluating the code as to the processing calls verses the
  85. menuing code.
  86.  
  87. LEAD Technologies' offers several end user products as well as several
  88. variations to the toolkit.  LEAD's products are listed below.
  89.  
  90.    LEADVIEW  - Software only compression, decompression, file format
  91.                conversion, and communication.  Operate from menuing system,
  92.                DOS command line, or as a TSR from within other applications.
  93.                Retail = $129.00
  94.  
  95.    LEADVIEW Windows  - Software only compression, decompression, file format
  96.                        conversion, as well as ability to flip, rotate, reverse
  97.                        images.  Includes a palette editor.
  98.                        Retail = $179.00
  99.  
  100.    LEADVIEW 255  - PC/AT add-on board that accelerates the compression and
  101.                    decompression process of both LEADVIEW and LEADVIEW Windows.
  102.                    Conducts compression and decompression in real-time.
  103.                    Retail = $1,495.00
  104.  
  105.    LEADTOOLS  - Software compression - $995.00
  106.               - Hardware compression via LEADVIEW 255 - FREE with the purchase
  107.                 of 2 LEADVIEW 255 boards.
  108.               - No compression - $249.00 - All conversion and other image
  109.                 processing functions are included.
  110.  
  111.    LEADTOOLS Windows DLL - Software compresion - $995.00
  112.                          - Hardware compression via LEADVIEW 255 - FREE with
  113.                            purchase of 2 LEADVIEW 255 boards.
  114.                          - No compression - $249.00 - All conversion and other
  115.                            image processing functions are included.
  116.  
  117. Please do not hesitate to contact LEAD's technical staff if you have any
  118. questions while you are evaluating LEADTOOLS.
  119.  
  120. ******************************************************************************
  121.                 To contact LEAD call or write:
  122.                   LEAD Technologies, Inc.
  123.                   8701 Mallard Creek Road
  124.                   Charlotte, NC  28262
  125.                         1-800-637-4699
  126.                  in NC  704-548-8161
  127. ******************************************************************************
  128.  
  129. *********************************************************************************
  130.                         LEADVIEW  by LEAD Technologies, Inc.
  131.                         Software Only Image Compression.
  132. *********************************************************************************
  133. LEADVIEW is an image compression, conversion, viewing and processing utility for
  134. DOS. Compresses images to smaller than 200 times their original size while
  135. maintaining unprecedented image quality.  LEADVIEW supports the JPEG standard
  136. as well as LEAD Technologies' proprietary compression format.
  137.  
  138. LEAD's compression file format produces a smaller file size and better image
  139. quality than other compression techniques, including JPEG. LEAD's compression
  140. file format can store a palette in the compressed file to allow decompression
  141. to a 24-bit medium at 24-bit true color and to an 8-bit medium at 8-bit 256
  142. color without sacrificing image quality.  The compressed file stills contains
  143. the original 24-bit 16 million colors.  Storing the palette adds a table that
  144. contains the best 256 colors.  The palette is only used when the file is
  145. decompressed to an 8-bit medium, and is ignored when decompressing to a
  146. 24-bit or 16-bit medium.  There is no need to convert all images to 8-bit or
  147. to save one 8-bit image and one 24-bit image.  The result is one much smaller
  148. file that can be viewed on a 24-bit graphics card at 24-bit true color as
  149. well as on a VGA card at 8-bit 256 color.
  150.  
  151. Easily switch between JPEG and LEAD depending on the situation. If an image,
  152. or series of images needs JPEG file format compatibility, use JPEG.  If the
  153. image will be used in a closed environment, that is compression and
  154. decompression will be done on the same PC, LAN, or with a LEAD Technologies,
  155. Inc. product, use LEAD. Note that an image that was originally compressed
  156. with LEAD can be easily convert between any of the supported formats
  157.  
  158. LEADVIEW can be operated from an easy to use menu interface, as a TSR that
  159. can be run under popular graphics programs, or from the DOS command line.
  160.  
  161. LEADVIEW not only compressess and decompressed images but also contains a
  162. complete file format conversion utility. Images can be converted, scaled,
  163. resized, flipped, rotated, and reversed. Supported file formats include;
  164. TGA (8-, 16-, 24-, and 32 bit), TIFF (8- and 24-bit), BMP (4-, 8- and 24-bit),
  165. GIF and PCX.
  166.  
  167.  
  168. *********************************************************************************
  169.                         LEADVIEW Windows by LEAD Technologies, Inc.
  170.                         Software Only Windows 3.x Compatible Image
  171.                         Compression.
  172. *********************************************************************************
  173. LEADVIEW Windows is an image compression, conversion, viewing and processing
  174. utility. Compress images to smaller than 200 times their original size while
  175. maintaining unprecedented image quality.  LEADVIEW Windows supports the JPEG
  176. standard as well as LEAD Technologies' proprietary compression format.
  177.  
  178. LEAD's compression file format produces a smaller file size and better image
  179. quality than other compression techniques, including JPEG. LEAD's compression
  180. file format can store a palette in the compressed file to allow decompression
  181. to a 24-bit medium at 24-bit true color and to an 8-bit medium at 8-bit 256
  182. color without sacrificing image quality.  The compressed file stills contains
  183. the original 24-bit 16 million colors.  Storing the palette adds a table that
  184. contains the best 256 colors.  The palette is only used when the file is
  185. decompressed to an 8-bit medium, and is ignored when decompressing to a
  186. 24-bit or 16-bit medium.  There is no need to convert all images to 8-bit or
  187. to save one 8-bit image and one 24-bit image.  The result is one much smaller
  188. file that can be viewed on a 24-bit graphics card at 24-bit true color as
  189. well as on a VGA card at 8-bit 256 color.
  190.  
  191. Easily switch between JPEG and LEAD compression processes depending on the
  192. situation. If an image, or series of images, needs JPEG file format
  193. compatibility, use JPEG. If the image will be used in a closed environment,
  194. that is compression and decompression will be done on the same PC, LAN, or
  195. with a LEAD  Technologies product, use LEAD. Note that an image that was
  196. originally compressed with LEAD can be decompressed and then re-compressed
  197. with JPEG.
  198.  
  199. LEADVIEW Windows also contains a complete file format conversion utility.
  200. Images can be converted, darkened, lightened, scaled, resized, flipped,
  201. rotated, and reversed. With LEADVIEW Windows you have an option to display
  202. multiple images with an excellent average palette on 8-bit devices without
  203. destroying background images, and a palette editor that lets you change
  204. any of your image colors.
  205.  
  206. Supported file formats include: TGA (8-, 16-, 24-, and 32 bit),
  207. TIFF (8- and 24-bit), BMP (4-, 8- and 24-bit), GIF , PCX ,JPG, JFIF,
  208. JTIF and CMP.
  209.  
  210. *********************************************************************************
  211.                                 LEADVIEW 255
  212.                          by LEAD Technologies, Inc.
  213.           Real Time Compression Hardware for LEADVIEW and LEADVIEW Windows
  214. *********************************************************************************
  215.  
  216. The LEADVIEW 255 is a hardware board that is designed to accelerate the
  217. compression and decompression processes of LEADVIEW and LEADVIEW Windows.
  218. The board is based around C-Cube Microsystems CL550B compression chip,
  219. and is capable of producing both JPEG compliant files and LEAD's proprietary
  220. CMP file formats.
  221.  
  222. When combined with LEADVIEW or LEADVIEW Windows, the LEADVIEW 255 can
  223. compress images smaller than 200 times their original size while maintaining
  224. unprecedented image quality in real time. The LEADVIEW 255 supports the
  225. JPEG compression standard as well as LEAD Technologies' proprietary
  226. compression process.  LEAD's algorithm delivers a smaller file size with a
  227. better image quality than other compression techniques, including JPEG.
  228.  
  229. LEADVIEW 255 was designed to compress and decompress images in real time.
  230. Bench mark tests on the LEADVIEW 255 show compression and decompression times
  231. of under one second while processing a 1 Mbytes 32 bit TGA file on a 386 25
  232. MHz IBM clone. LEAD Technologies recommends the 255 to anyone who requires
  233. split second decompression times, or who frequently needs to compress and
  234. decompress multiple images.
  235.  
  236. *********************************************************************************
  237.                                 LEADTOOLS
  238.                         by LEAD Technologies, Inc.
  239.      Put Image Compression, Conversion, and Processing Into Your Application
  240. *********************************************************************************
  241.  
  242. LEADTOOLS is a "C" run-time library enabling developers to incorporate image
  243. compression, conversion, and processing into their applications.
  244. LEADTOOLS allows images to be compressed to smaller than 200 times their
  245. original size while maintaining unprecedented image quality.  Ideal for
  246. applications such as image databases, medical, mapping, real estate,
  247. graphics, and much more. LEADTOOLS is essential in any image or graphics
  248. application. There are three versions of LEADTOOLS:
  249.         LEADTOOLS with software compression,
  250.         LEADTOOLS with hardware compression, and
  251.         LEADTOOLS without compression.
  252. The need for compression stems from the large file sizes that are generated
  253. by color and grey scale graphic images. Image file sizes can range from
  254. 100 Kbytes to over 200 Mbytes. The size of the files can be very prohibitive
  255. to applications because of storage requirements, I/O time of moving the image
  256. files through the system, or transmission time over networks or phone lines.
  257. Compression reduces the file size of an image and may make the use of images
  258. feasible, and even practical, in many applications. Several popular PC image
  259. file formats such as TGA, TIFF, BMP, PCX, and GIF currently use compression
  260. in their file formats to reduce the size the image creates. However, even
  261. with the compression in the image file format, the file sizes of these
  262. images are still extremely large. LEADTOOLS allows you to add additional
  263. compression to all supported image file formats. The amount of compression
  264. is controllable, allowing the compressed image quality to match the needs
  265. of your application. LEAD Technologies' extended compression ratios and the
  266. powerful LEAD CMP compressed file format enable "C" developers to produce
  267. imaging applications with LEADTOOLS to significantly improve available image
  268. processing and transmission times. LEADTOOLS supports both the JPEG standard
  269. compression and LEAD Technologies' proprietary compression.
  270.  
  271. LEADTOOLS Features
  272. -       Choice of real time rates with hardware compression, or 8-10 second compression with software
  273.         only.
  274.  
  275. -       Compression and decompression of graphic images while retaining very high image resolution
  276.         quality.
  277.  
  278. -       Direct decompression from a compressed file to video memory.
  279.  
  280. -       Support for both JPEG compliant formats, JFIF and JTIF, as well as LEAD's CMP extended
  281.         compression file format. LEAD's CMP compression file format delivers a much smaller file size
  282.         and better image quality than other compression techniques including JPEG.
  283.  
  284. -       Ability to control the quality of the compressed image with a selection of compression factors
  285.         ranging from 2 to 255.
  286.  
  287. -       Ability to display graphic images to a variety of different screen types: TARGA, VGA, and
  288.         Super VGA.
  289.  
  290. -       Ability to convert and compress/decompress images to and from several file formats:
  291.         TGA     8 bit grey scale, 8 bit color mapped, 16, 24, and 32 bit color.
  292.         PCX     8 bit grey scale and 8 bit color mapped.
  293.         GIF     8 bit grey scale and 8 bit color mapped.
  294.         TIFF    8 bit grey scale, 8 bit color mapped, and 24 bit color
  295.         BMP     Presentation Manager and Windows 4, 8 bit color mapped, and 24 bit color.
  296.         JFF     (JFIF) JPEG File Interchange Format, (extended as JPG).
  297.         JTF     (JTIF) JPEG TIF.
  298.         CMP     (LEAD) LEAD Technologies, Inc. proprietary compression file format.
  299.  
  300. -       Ability to (Optimize VGA Palette) find the best 256 colors from 16, 24, and 32 bit image file
  301.         formats.
  302.  
  303. -       Ability to flip, reverse, rotate and resize images.
  304.  
  305. -       Ability to use all of the system's resources to its maximum power including support of extended
  306.         memory, expanded memory, and swapping to disk capability.
  307.  
  308. -       Tools for viewing all supported file formats, including resizing an image "on the fly" for optimal
  309.         displaying and the ability to display the image to specified locations on the screen.
  310.  
  311. -       Support for a bit map handle allowing you to use all of LEADTOOLS' functions in mediums that
  312.         LEAD Technologies, Inc. does not currently support. A "BITMAPHANDLE" is a structure
  313.         containing image information and data, which is made up of fields that describe an image
  314.         completely, including Format, Width, Height, BitsPerPixel, BytesPerLine, where to find the pixel
  315.         data, flags about the image, and many more.  A BITMAPHANDLE is used for functions involving
  316.         images. For instance, when you load an image, you load it into the BITMAPHANDLE; then you
  317.         may view, convert, flip, etc. the image using the BITMAPHANDLE. As a developer you may use
  318.         any of the fields in the        BITMAPHANDLE.
  319.  
  320.         Example of the usage of LEADTOOLS in mediums that LEAD Technologies does not currently
  321.         support.
  322.                 1 - For the compression/decompression of image file formats not currently supported by
  323.                 LEAD, you can write your own routines to read the unrecognized file format into the
  324.                 bit map handle and then compress the bit map handle. You can also decompress the
  325.                 compressed file to a bit map handle and write your own routines to save the file in the
  326.                 unsupported file format.
  327.  
  328.                 2 - For graphics cards and printers not currently supported by LEAD, you can decompress
  329.                 to a bit map handle and resize, flip, reverse, optimize, and write your own routines to view
  330.                 or print directly from the bit map handle.
  331.  
  332. LEADTOOLS - Easy to use
  333.  
  334. LEADTOOLS is designed to allow you to concentrate on your applications and end user needs. With this
  335. goal in mind, LEAD Technologies has built in the most common hardware and graphic file format support.
  336. All you have to do is call the appropriate LEADTOOLS function. When your application needs
  337. compression, call LEADTOOLS'  compression functions, pass the appropriate parameters, and allow
  338. LEADTOOLS to perform the complex task of image compression.
  339.  
  340. Additionally, when the application requires an image to be viewed, you may call one of LEADTOOLS
  341. viewing functions. LEADTOOLS takes care of the time consuming programming support for different file
  342. formats and different hardware configurations.
  343.  
  344. Integrating LEADTOOLS' Functions into your applications is as follows:
  345.                 1 - Use #include preprocessor directive for the header files required.
  346.                 2 - Call the desired functions from within your program.
  347.                 3 - Compile the program.
  348.                 4 - Link with the appropriate library.
  349.  
  350. The Compression Concept
  351. The concept of compression is to reduce file sizes by either finding redundancies and storing as few of
  352. them as possible, or with image and audio files eliminating some information to produce more
  353. redundancies, then combining them to produce even a smaller file size.
  354.  
  355. There are basically three ways to compress an image :
  356.  
  357.         1) Lossless compression, which deals with redundancies of the image data.
  358.  
  359.         2) Lossey compression, which discards the color shadings that the human eye cannot detect, and
  360.         then compresses the image with a lossless compression. This process allows for more compression
  361.         since it provides more redundancies. There is technically a loss of data because color shadings
  362.         have been eliminated and hence the name for the technique.
  363.  
  364.         3) The lossey compression can also eliminate color shadings that are visible to the human eye. This
  365.         too is loss of data. The amount of loss is controllable by setting parameters of the range of colors
  366.         that will be treated as the same. The larger the range, the more loss will occur, and the smaller the
  367.         resulting compressed image file size.
  368.  
  369.  
  370. LEADTOOLS' Supported Compression
  371.  
  372. LEADTOOLS supports LEAD CMP, JPEG, LZW and RLE compression methods.
  373.  
  374. LEAD    LEADTOOLS supports LEAD Technologies' proprietary CMP file which delivers a smaller file
  375.         size combined with better image quality than other compression techniques, including JPEG.
  376.         LEAD's compression file format can also store a palette in the compressed file to allow
  377.         decompression to a 24 bit medium at 24 bit color and  to an 8 bit medium at 8 bit 256 color
  378.         without sacrificing image quality. The file still contains the original 24 bit 16 million colors.
  379.         Storing the palette adds a table that contains the best 256 colors. The palette is only used when the
  380.         file is decompressed to an 8 bit medium and is ignored when decompressing to a 32, 24, or 16 bit
  381.         medium. There is no need to convert all images to 8 bits or to save one 8 bit  image and one 24 bit
  382.         image. The result is one much smaller file size that can be viewed on a 24 bit graphics card at 24
  383.         bit true color, as well as, on an 8 bit VGA card at 256 colors.
  384.  
  385. JPEG    JPEG stands for the Joint Photographers Experts Group and grew out of two standardized groups,
  386.         the CCITT and the ISO. The basic idea behind JPEG is to provide a unified standard under which
  387.         hardware and software developers can operate. Images compressed with JPEG can be exchanged
  388.         between a wide variety of platforms and applications. The JPEG specification consists of two parts:
  389.         lossless encoding and lossey encoding. The lossless compression uses the predictive/adaptive
  390.         technique and Huffman coding. The lossey compression operates in three steps:
  391.                 1. Discreet Cosine Transformation
  392.                 2. Coefficient Quantization
  393.                 3. Lossless Compression
  394.  
  395. LEADTOOLS supports two forms of JPEG: JPEG Interchange File Format (JFIF)or(JPG) and JPEG TIFF
  396. (JTIF).
  397.  
  398. Supported Graphics Cards
  399. TARGA M8, 16, 24, 32, TARGA+, standard VGA/MCGA at 320 X 200, Super VGAs (including:
  400. Paradise, Tseng Labs 3000/4000, ATI Wonder, Trident 8800CS, Video Seven, all up to 1024 X 1024),
  401. and VESA compliant standard up to 640 X 480.
  402.  
  403. Supported Compilers
  404. Microsoft C 6.0, 7.0 Medium and Large memory modules
  405. Borland C, C++ Medium and Large memory modules
  406. Call for updated list of compilers. Including DOS Extenders.
  407.  
  408. Compatible with LEAD Technologies' real time compression hardware LEADVIEW 255
  409.  
  410. LEADTOOLS' commonly used functions:
  411.  
  412. L_AllocateBitmap        Allocate storage to hold an image in a bitmap handle
  413. L_ChangeBitmapIntensity Change the intensity of an image currently in a bitmap handle
  414. L_ClearBitmap           Clear storage located in bitmap handle
  415. L-ClearVGAScreen        Clear the VGA screen
  416. L_CompressALL           Compress all  supported file formats
  417. L_CompressBitmap        Compress an image contained in a bitmap handle
  418. L_CompressBMP           Compress a BMP image file format to LEAD, JFIF, or JTIF
  419. L_CompressGIF           Compress a GIF image file format to LEAD, JFIF, or JTIF
  420. L_CompressPCX           Compress a PCX image file format to LEAD, JFIF, or JTIF
  421. L_CompressTarga         Compress the current image in the TARGA or TARGA+ video memory
  422. L_CompressTGA           Compress a TGA image file format to LEAD, JFIF, or JTIF
  423. L_CompressTIF           Compress a TIFF image file format to LEAD, JFIF, or JTIF
  424. L_CopyBitmapData        Copy image data from one bitmap handle to another
  425. L_CopyBitmapHandle      Copy one bitmap handle to another
  426. L_DecompressALL         Decompress LEAD, JFIF, or JTIF to any of the supported file formats
  427. L_DecompressBitmap      Decompress LEAD, JTIF, or JFIF  to bitmap handle
  428. L_DecompressBMP         Decompress LEAD, JTIF, or JFIF to BMP image file format
  429. L_DecompressGIF         Decompress LEAD, JTIF, or JFIF to GIF image file format
  430. L_DecompressPCX         Decompress LEAD, JTIF, or JFIF to PCX image file format
  431. L_DecompressTARGAScreen Decompress LEAD, JFIF, or JTIF to TARGA or  TARGA+
  432. L_DecompressTGA         Decompress LEAD, JTIF, or JFIF to TGA image file format
  433. L_DecompressTIF         Decompress LEAD, JTIF, or JFIF to TIFF image file format
  434. L_DecompressVGAScreen   Decompress LEAD, JTIF, or JFIF to VGA or Super VGA
  435. L_FileConvert           Convert any supported image file to another supported image file format
  436. L_FileInfo              Return information on any supported image file format
  437. L_FlipBitmap            Flip an image (top to bottom) located in a bitmap handle
  438. L_FreeBitmap            Free the storage allocated for an image contained in a bitmap handle
  439. L_GetBitmapRow          Retrieve a row from an image in a bitmap handle
  440. L_GetScreenBitmap       Retrieve an image from the VGA or Super VGA screen
  441. L_GetTargaWindow        Save TARGA or TARGA+ pixel data from a specified location
  442. L_GetVideoInfo          Calculate the best VGA width and height
  443. L_GetVideoMode          Get current VGA video display mode and page
  444. L_InitBitmap            Initialize the fields in a bitmap handle
  445. L_InitVideoScreen       Initialze the VGA video screen and switches to that mode
  446. L_LoadBMPScreen         Load a BMP image file into VGA, Super VGA, and/or bitmap andle
  447. L_LoadBMPTarga          Load a BMP image file into TARGA, TARGA+, and/or bitmap handle
  448. L_LoadGIFScreen         Load a GIF image file into VGA, Super VGA, and/or bitmap handle
  449. L_LoadGIFTarga          Load a GIF image file into TARGA, TARGA+, and/or bitmap handle
  450. L_LoadPCXScreen         Load a PCX image file into VGA, Super VGA, and/or bitmap handle
  451. L_LoadPCXTarga          Load a PCX image file into TARGA, TARGA+, and/or bitmap handle
  452. L_LoadTGAScreen         Load a TGA image file into VGA, or Super VGA, and/or bitmap handle
  453. L_LoadTGATarga          Load a TGA image file into TARGA, TARGA+, and/or bitmap handle
  454. L_LoadTIFScreen         Load a TIFF image file into VGA, Super VGA, and/or bitmap handle
  455. L_LoadTIFTarga          Load a TIFF image file into TARGA, TARGA+, and/or bitmap handle
  456. L_OptimizeBitmap        Optimize a (16, 24, or 32bit) image into 256 colors
  457. L_PutBitmapRow          Store a row of an image data into a bitmap handle
  458. L_ResizeBitmap          Resize an image in a bitmap handle
  459. L_RestoreWindow         Restore a buffer to current text screen
  460. L_ReverseBitmap         Reverse an image (left to right) located in a bitmap handle
  461. L_RotateBitmap          Rotate an image in a bitmap handle
  462. L_SaveBMPBitmap         Save a bitmap to a BMP image file format
  463. L_SaveGIFBitmap         Save a bitmap to a GIF image file format
  464. L_SavePCXBitmap         Save a bitmap to a PCX image file format
  465. L_SaveTGABitmap         Save a bitmap to a TGA image file format
  466. L_SaveTIFBitmap         Save a bitmap to a TIF image file format
  467. L_SaveWindow            Save the current VGA text screen and cursor location
  468. L_SetBitmapPos          Set a new X and Y positions in a bitmap handle
  469. L_SetCheckStatus        Status for checking  the Escape key
  470. L_SetTARGAMode          Set the TARGA+ graphics resolution
  471. L_SetVGASize            Set the desired size for the VGA screen.
  472. L_SetVideoMemory        Set the amount of VGA video RAM installe
  473. L_SetVideoMode          Set the VGA video mode and page
  474. L_ShowBMPScreen         Display a BMP image file to VGA or SuperVGA
  475. L_ShowBMPTarga          Display a BMP image file to TARGA or TARGA+
  476. L_ShowGIFScreen         Display a GIF  image file to VGA or SuperVGA
  477. L_ShowGIFTarga          Display a GIF  image file to TARGA or TARGA+
  478. L_ShowPCXScreen         Display a PCX image file to VGA or SuperVGA
  479. L_ShowPCXTarga          Display a PCX  image file to TARGA or TARGA+
  480. L_ShowTGAScreen         Display a TGA image file to VGA or SuperVGA
  481. L_ShowTGATarga          Display a TGA image file to TARGA or TARGA+
  482. L_ShowTIFScreen         Display a TIFF  image file to VGA or SuperVGA
  483. L_ShowTIFTarga          Display a TIFF image file  to TARGA or TARGA+
  484. L_SizeBitmap            Resize an image in a bitmap to a new width and height
  485. L_SleepKey              Delay until a key is pressed or time out occurs
  486. L_TARGAEND              Perform clean up for TARGA or TARGA+ graphics environment
  487. L_TARGAInit             Intialize TARGA or TARGA+ graphics Environment
  488. L_ViewBitmapScreen      Display an image in a bitmap handle to VGA or Super VGA screen
  489. L_ViewBitmapTarga       Display an image in a bitmap handle to TARGA or TARGA+
  490.  
  491.  
  492.  
  493.  
  494. *********************************************************************************
  495.                           LEADTOOLS WINDOWS DLL
  496.                         by LEAD Technologies, Inc.
  497.         Put Image Compression, Conversion, and Processing Into Your Windows
  498.                                 Application.
  499. *********************************************************************************
  500.  
  501. LEADTOOLS Windows DLL is a Dynamic Link Library (DLL) enabling developers to
  502. incorporate image compression, conversion, and processing into their Windows
  503. applications. LEADTOOLS Windows DLL allows images to be compressed to
  504. smaller than 200 times their original size while maintaining unprecedented
  505. image quality.  Ideal for applications such as image databases, medical,
  506. mapping, real estate, graphics, and much more. LEADTOOLS Windows DLL is
  507. essential in any Windows image or graphics application.
  508.  
  509. There are three versions of LEADTOOLS Windows DLL:
  510.         LEADTOOLS Windows DLL with software compression.
  511.         LEADTOOLS Windows DLL with hardware compression.
  512.         LEADTOOLS Windows DLL without compression.
  513.  
  514. The need for compression stems from the large file sizes that are generated
  515. by color and grey scale graphic images. Image file sizes can range from
  516. 100 Kbytes to over 200 Mbytes. The size of the files can be very prohibitive
  517. to applications because of storage requirements, I/O time of moving the image
  518. files through the system, or transmission time over networks or phone lines.
  519. Compression reduces the file size of an image and may make the use of images
  520. feasible, and even practical, in many applications. Several popular PC image
  521. file formats such as TGA, TIFF, BMP, PCX, and GIF currently use compression
  522. in their file formats to reduce the size the image creates. However, even
  523. with the compression in the image file format, the file sizes of these images
  524. are still extremely large. LEADTOOLS Windows DLL allows you to add additional
  525. compression to all supported image file formats. The amount of compression is
  526. controllable, allowing the compressed image quality to match the needs of
  527. your application. LEAD Technologies' extended compression ratios and the
  528. powerful LEAD CMP compressed file format enable Windows developers to
  529. produce imaging applications with LEADTOOLS Windows DLL to significantly
  530. improve available image processing and transmission times. LEADTOOLS Windows
  531. DLL supports both the JPEG standard compression and LEAD Technologies'
  532. proprietary compression.
  533.  
  534. LEADTOOLS Windows DLL Features
  535. -       Choice of real time rates with hardware compression, or 8-10 second compression with software
  536.         only.
  537.  
  538. -       Compression and decompression of graphic images while retaining very high image quality.
  539.  
  540. -       Direct decompression from a compressed file to registered Windows class.
  541.  
  542. -       Support for both JPEG compliant formats, JFIF and JTIF, as well as LEAD's CMP extended
  543.         compression file format. LEAD's CMP compression file format delivers a much smaller file size
  544.         and better image quality than other compression techniques including JPEG.
  545.  
  546. -       Ability to control the quality of the compressed image with a selection of compression factors
  547.         ranging from 2 to 255.
  548.  
  549. -       Ability to convert and compress/decompress images to and from several file formats:
  550.         TGA     8 bit grey scale, 8 bit color mapped, 16, 24, and 32 bit color.
  551.         PCX     8 bit grey scale and 8 bit color mapped.
  552.         GIF     8 bit grey scale and 8 bit color mapped.
  553.         TIFF    8 bit grey scale, 8 bit color mapped, and 24 bit color
  554.         BMP     Presentation Manager and Windows 4, 8 bit color mapped, and 24 bit color.
  555.         JFF     (JFIF) JPEG File Interchange Format, (extended as JPG).
  556.         JTF     (JTIF) JPEG TIF.
  557.         CMP     (LEAD) LEAD Technologies, Inc. proprietary compression file format.
  558.  
  559. -       Ability to (Optimize VGA Palette) find the best 256 colors from 16, 24, and 32 bit image file
  560.         formats.
  561.  
  562. -       An option to display multiple images with an excellent average palette on 8-bit devices without
  563. destroying background images.
  564.  
  565. -       Ability to flip, reverse, rotate and resize images.
  566.  
  567. -       A registered Windows class freeing developers from the details of displaying an image under
  568.         Windows
  569.  
  570. -       Support for a bit map handle allowing you to use all of LEADTOOLS' Windows DLL functions in
  571. mediums that LEAD Technologies, Inc. does not currently support. A "BITMAPHANDLE" is a
  572. structure containing image information and data, which is made up of fields that describe an image
  573. completely, including Format, Width, Height, BitsPerPixel, BytesPerLine, where to find the pixel
  574. data, flags about the image, and many more. A BITMAPHANDLE is used for functions involving
  575. images. For instance, when you load an image, you load it into the BITMAPHANDLE; then you
  576. may view, convert, flip, etc. the image using the BITMAPHANDLE. As a developer you may use
  577. any of the fields in the BITMAPHANDLE.
  578.  
  579. Example of the usage of LEADTOOLS Windows DLL in mediums that LEAD Technologies does
  580. not currently support.
  581.         For the compression/decompression of image file formats not currently supported by
  582.         LEAD, you can write your own routines to read the unrecognized file format into the
  583.         bit map handle and then compress the bit map handle. You can also decompress the
  584.         compressed file to a bit map handle and write your own routines to save the file in the
  585.         unsupported file format.
  586.  
  587.  
  588. LEADTOOLS Windows DLL-Easy to use.
  589.  
  590. LEADTOOLS Windows DLL is designed to allow you to concentrate on your applications and end user
  591. needs. With this goal in mind, LEAD Technologies has built in the most common hardware and graphic file
  592. format support. All you have to do is call the appropriate LEADTOOLS Windows DLL function. When
  593. your application needs compression, call LEADTOOLS' Windows DLL compression functions, and allow
  594. LEADTOOLS to perform the complex task of image compression.
  595.  
  596. Additionally, when the application requires an image to be viewed, you may call one of LEADTOOLS
  597. Windows DLL viewing functions. LEADTOOLS Windows DLL takes care of the time consuming
  598. programming support for different file formats and different hardware configurations.
  599.  
  600. Integrating LEADTOOLS' Windows DLL Functions into your applications is as follows:
  601.                 1 - Use #include preprocessor directive for the header files required.
  602.                 2 - Call the desired functions from within your program.
  603.                 3 - Compile the program.
  604.                 4 - Link with the appropriate library.
  605.  
  606. The Compression Concept.
  607. The concept of compression is to reduce file sizes by either finding redundancies and storing as few of
  608. them as possible, or with image and audio files eliminating some information to produce more
  609. redundancies, then combining them to produce even a smaller file size.
  610.  
  611. There are basically three ways to compress an image :
  612.  
  613.         1) Lossless compression, which deals with redundancies of the image data.
  614.  
  615.         2) Lossey compression, which discards the color shadings that the human eye cannot detect, and
  616.         then compresses the image with a lossless compression. This process allows for more compression
  617.         since it provides more redundancies. There is technically a loss of data because color shadings
  618.         have been eliminated and hence the name for the technique.
  619.  
  620.         3) The lossey compression can also eliminate color shadings that are visible to the human eye. This
  621.         too is loss of data. The amount of loss is controllable by setting parameters of the range of colors
  622.         that will be treated as the same. The larger the range, the more loss will occur, and the smaller the
  623.         resulting compressed image file size.
  624.  
  625. LEADTOOLS' Windows DLL Supported Compression
  626.  
  627. LEADTOOLS Windows DLL supports LEAD CMP, JPEG, LZW and RLE compression
  628. methods.
  629.  
  630. LEAD    LEADTOOLS Windows DLL supports LEAD Technologies' proprietary CMP file which delivers
  631.         a smaller file size combined with better image quality than other compression techniques, including
  632.         JPEG. LEAD's compression file format can also store a palette in the compressed file to allow
  633.         decompression to a 24 bit medium at 24 bit color and  to an 8 bit medium at 8 bit 256 color
  634.         without sacrificing image quality. The file still contains the original 24 bit 16 million colors.
  635.         Storing the palette adds a table that contains the best 256 colors. The palette is only used when the
  636.         file is decompressed to an 8 bit medium and is ignored when decompressing to a 32, 24, or 16 bit
  637.         medium. There is no need to convert all images to 8 bits or to save one 8 bit  image and one 24 bit
  638.         image. The result is one much smaller file size that can be viewed on a 24 bit graphics card at 24
  639.         bit true color, as well as, on an 8 bit VGA card at 256 colors.
  640.  
  641. JPEG    JPEG stands for the Joint Photographers Experts Group and grew out of two standardized groups,
  642.         the CCITT and the ISO. The basic idea behind JPEG is to provide a unified standard under which
  643.         hardware and software developers can operate. Images compressed with JPEG can be exchanged
  644.         between a wide variety of platforms and applications. The JPEG specification consists of two parts:
  645.         lossless encoding and lossey encoding. The lossless compression uses the predictive/adaptive
  646.         technique and Huffman coding. The lossey compression operates in three steps:
  647.                 1. Discreet Cosine Transformation
  648.                 2. Coefficient Quantization
  649.                 3. Lossless Compression
  650.  
  651. LEADTOOLS supports two forms of JPEG: JPEG Interchange File Format (JFIF)or(JPG) and JPEG TIFF
  652. (JTIF).
  653.  
  654.  
  655. LEADTOOLS' Windows DLL commonly used functions:
  656.  
  657. L_AllocateBitmap        Allocate storage to hold an image in a bitmap handle
  658. L_ChangeBitmapIntensity Change the intensity of an image currently in a bitmap handle
  659. L_ClearBitmap           Clear storage located in bitmap handle
  660. L_CompressALL           Compress all  supported file formats
  661. L_CompressBitmap        Compress an image contained in a bitmap handle
  662. L_CompressBMP           Compress a BMP image  file to LEAD, JFF, JTF
  663. L_CompressGIF           Compress a GIF image file format to LEAD, JFIF, or JTIF
  664. L_CompressPCX           Compress a PCX image file format to LEAD, JFIF, or JTIF
  665. L_CompressTarga         Compress the current image in the TARGA or TARGA+ video memory
  666. L_CompressTGA           Compress a TGA image file format to LEAD, JFIF, or JTIF
  667. L_CompressTIF           Compress a TIFF image file format to LEAD, JFIF, or JTIF
  668. L_CopyBitmapData        Copy image data from one bitmap handle to another
  669. L_CopyBitmapHandle      Copy one bitmap handle to another
  670. L_DecompressALL         Decompress LEAD, JFIF, or JTIF to any of the supported file formats
  671. L_DecompressBitmap      Decompress LEAD, JTIF, or JFIF  to bitmap handle
  672. L_DecompressBMP         Decompress LEAD, JTIF, or JFIF to BMP image file format
  673. L_DecompressGIF         Decompress LEAD, JTIF, or JFIF to GIF image file format
  674. L_DecompressPCX         Decompress LEAD, JTIF, or JFIF to PCX image file format
  675. L_DecompressTGA         Decompress LEAD, JTIF, or JFIF to TGA image file format
  676. L_DecompressTIF         Decompress LEAD, JTIF, or JFIF to TIFF image file format
  677. L_FileConvert           Convert any supported image file to another supported image file format
  678. L_FileInfo              Return information on any supported image file format
  679. L_FlipBitmap            Flip an image (top to bottom) located in a bitmap handle
  680. L_FreeBitmap            Free the storage allocated for an image contained in a bitmap handle
  681. L_GetBitmapRow          Retrieve a row from an image in a bitmap handle
  682. L_GetWindowBitmap       Retrieves an image from the Disktop
  683. L_InitBitmap            Initialize the fields in a bitmap handle
  684. L_LoadBMP               Load a BMP image file into bitmap handle
  685. L_LoadGIF               Load a GIF image file into a bitmap handle
  686. L_LoadPCX               Load a PCX image file into a  bitmap handle
  687. L_LoadTGA               Load a TGA image file into a bitmap handle
  688. L_LoadTIF               Load a TIFF image file into a bitmap handle
  689. L_OptimizeBitmap        Optimize a (16, 24, or 32bit) image into 256 colors
  690. L_PutBitmapRow          Store a row of an image data into a bitmap handle
  691. L_RegeisterLEAD         Register LEAD Window class
  692. L_ResizeBitmap          Resize an image in a bitmap handle
  693. L_ReverseBitmap         Reverse an image (left to right) located in a bitmap handle
  694. L_RotateBitmap          Rotate an image in a bitmap handle
  695. L_SaveBMPBitmap         Save a bitmap to a BMP image file format
  696. L_SaveGIFBitmap         Save a bitmap to a GIF image file format
  697. L_SavePCXBitmap         Save a bitmap to a PCX image file format
  698. L_SaveTGABitmap         Save a bitmap to a TGA image file format
  699. L_SaveTIFBitmap         Save a bitmap to a TIF image file format
  700. L_SetAveragePalette     Set or calculate average palette.
  701. L_SetBitmapPos          Set a new X and Y positions in a bitmap handle
  702. L_SizeBitmap            Resize an image in a bitmap to a new width and height
  703. L_Use Avarage Palette   Use average palette when display multiple images
  704.  
  705. ****************************************************************************************
  706.  
  707.  
  708. ****************************************************************************************
  709. LEAD Technologies, Inc. Price List:
  710. ****************************************************************************************
  711. LEADTOOLS                                       $995.00
  712. LEADTOOLS -no compression                       $249.00
  713. LEADTOOLS hardware compression                  FREE with the purchase of 2 LEADVIEW 255 boards
  714. LEADTOOLS Windows DLL                           $995.00
  715. LEADTOOLS Windows DLL -no compression           $249.00
  716. LEADTOOLS Windows DLL  hardware compression     FREE with the purchase of 2 LEADVIEW 255 boards
  717. LEADVIEW                                        $129.00
  718. LEADVIEW Windows                                $179.00
  719. LEADVIEW 255                                    $1,495.00
  720. All LEAD Technologies products are sold with a 30 day money back guarantee.
  721. LEADTOOLS DOS AND LEADTOOLS indows DLL are sold without royalties.
  722.  
  723. *****************************************************************************************
  724.                 To contact LEAD call or write:
  725.                   LEAD Technologies, Inc.
  726.                   8701 Mallard Creek Road
  727.                   Charlotte, NC  28262
  728.                         1-800-637-4699
  729.                  in NC  704-548-8161
  730.  
  731. *****************************************************************************************
  732. 
  733.