home *** CD-ROM | disk | FTP | other *** search
/ PC Open 13 / pcopen13.iso / Zip / THINHELP.ZIP / support.lzh / JPGDEC.H next >
Encoding:
C/C++ Source or Header  |  1996-09-03  |  2.2 KB  |  65 lines

  1. /* J P G D E C . H -----------------------------------------------------*
  2.  * Include-File to be usied in Cunjunction with JPANI.DLL        *
  3.  * to use JPANI.DLL as an Import-Library for JPG-Compressed        *
  4.  * Bitmap-Data Files                            *
  5.  *                                      *
  6.  *    Dipl. Ing. Bernd Herd                         *
  7.  *    Rudolf-Virchow-Str. 8                        *
  8.  *    68642 Bⁿrstadt                                                    *
  9.  *    Tel. 06206/79222                                       *
  10.  *      EMail: herdsoft@aol.com                        *
  11.  *                                                                      *
  12.  *                                    *
  13.  *----------------------------------------------------------------------*/
  14.  
  15. #ifdef __cplusplus
  16. extern "C"
  17. #endif
  18.   HGLOBAL FAR PASCAL THDecJpgDib(LPVOID lpJpgData, DWORD dwBlkSize, DWORD Dummy1, DWORD Dummy2);
  19.  
  20. /* Usage: Include this File in your Application. with #include "jpgdec.h".
  21.       Use IMPLIB (Delivered with your Compiler) to create an
  22.       Import-Library and include it to your Link-Project.
  23.  
  24.    Parameters:
  25.  
  26.    lpJpgData: Pointer to a Data Block containing the JPG-Compressed Image
  27.    dwBlkSize: Size of this Data Block in Bytes
  28.  
  29.    Dummy1,Dummy2    : Currently not used, reserved for future Defintion Applications should.
  30.            use Zero here.
  31.  
  32.    Returns:
  33.  
  34.    A Handle to a Global memory Block allocated with GlobalAlloc in CF_DIB-Data-Format.
  35.    Use GlobalLock to retrieve a Pointer to BITMAPINFOHEADER or in OWL 2.5
  36.    use TDib ADib(Handle); to Create a TDib-Object from it.
  37.  
  38.    The Return value will be NULL, if the Function does not Succeed.
  39.  
  40.    Note that illegal Input Data may Result in abnormal Program Termination without
  41.    returning from JPDecJpgDib.
  42. */
  43.  
  44. #ifndef __LZRES_H
  45. typedef void FAR *LPLZHEAD;
  46. #endif
  47.  
  48.  
  49.  
  50.  
  51. #ifdef __cplusplus
  52. extern "C"
  53. #endif
  54. void FAR PASCAL THGetSize(LPSTR lpJpgData, DWORD dwBlockSize, LPINT Width, LPINT Height);
  55. /* Usage: JPGetSize informs Application about required Bitmap-Size WITHOUT decompressing the Bitmap
  56.  
  57.    Parameters:
  58.  
  59.    lpJpgData: Pointer to a Data Block containing the JPG-Compressed Image
  60.    dwBlkSize: Size of this Data Block in Bytes
  61.    Width,
  62.    Height   : Pointers to Integer-Variables that will contain the Size the Function returns
  63. */
  64.  
  65.