home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1997 May / Pcwk0597.iso / delphi / imagelib / imgdib.h_ / imgdib.h
C/C++ Source or Header  |  1995-09-25  |  4KB  |  113 lines

  1. #ifndef IMAGEDIB_H
  2. #define IMAGEDIB_H
  3.  
  4. #if defined (JPG_DLL)
  5. #  define _JPGCLASS _export
  6. #else
  7. #  define _JPGCLASS
  8. #endif
  9.  
  10. #if defined __cplusplus
  11. # define _C "C"
  12. #else
  13. # define _C
  14. #endif
  15.  
  16. #include <windows.h>
  17. #include <windowsx.h>
  18.  
  19. extern _C int _JPGCLASS _pascal rdjpgfiledib(const char *filename, int resolution,
  20.                                          int scale, int dither, int password,
  21.                                          unsigned int * hdib, short (* pf)(int),
  22.                                          short errormode);
  23.  
  24. extern _C int _JPGCLASS _pascal wrjpegfiledib(const char *filename, int quality,
  25.                                                  int smooth, int password,
  26.                                                  unsigned int hdib, short (* pf)(int),
  27.                                                  short errormode);
  28.  
  29. extern _C int _JPGCLASS _pascal rdgiffiledib(const char *filename, int resolution,
  30.                                           int dither, int password, unsigned int * hdib,
  31.                                           short (* pf)(int), short errormode);
  32.  
  33. extern _C int _JPGCLASS _pascal rdpcxfiledib(const char *filename, int resolution,
  34.                                           int dither, int password, unsigned int * hdib,
  35.                                           short (* pf)(int), short errormode);
  36.  
  37. extern _C int _JPGCLASS _pascal rdjpgstreamdib(void * inbuffer, long size,
  38.                     int resolution, int scale, int dither, int password,
  39.                     unsigned int * hdib, short (* pf)(int), short errormode);
  40.  
  41. extern _C int _JPGCLASS _pascal rdpcxstreamdib(void * inbuffer, long size,
  42.                                     int resolution, int dither,
  43.                                                 int password, unsigned int * hdib,
  44.                                                 short (* pf)(int), short errormode);
  45.  
  46. extern _C int _JPGCLASS _pascal rdgifstreamdib(void * inbuffer, long size,
  47.                                                 int resolution, int dither,
  48.                                                 int password, unsigned int * hdib,
  49.                                                 short (* pf)(int), short errormode);
  50.  
  51. extern _C int _JPGCLASS _pascal wrjpegstreamdib(void * inbuffer, long * size,
  52.                                                  int quality, int smooth, int password,
  53.                                                  unsigned int hdib,
  54.                                                  short (* pf)(int), short errormode);
  55.  
  56. extern _C int _JPGCLASS _pascal rdbmpstreamdib(void * inbuffer, long size,
  57.                                           int resolution, int dither, int password,
  58.                                           unsigned int * hdib,
  59.                                           short (* pf)(int), short errormode);
  60.  
  61. extern _C int _JPGCLASS _pascal wrbmpstreamdib(void * inbuffer, long * size,
  62.                                               int resolution, int password, unsigned int hdib,
  63.                                               short (* pf)(int), short errormode);
  64.  
  65. extern _C int _JPGCLASS _pascal rdbmpfiledib(const char * filename, int resolution,
  66.                                                       int dither, int password,
  67.                                                       unsigned int * hdib, short (* pf)(int),
  68.                                                       short errormode);
  69.  
  70. extern _C int _JPGCLASS _pascal wrbmpfiledib(const char * filename, int resolution,
  71.                                                         int password, unsigned int hdib,
  72.                                                         short (* pf)(int), short errormode);
  73.  
  74. extern _C int _JPGCLASS _pascal rdpngfiledib(const char * filename,
  75.                                                       int resolution, int dither,
  76.                                                       int password, unsigned int * hdib,
  77.                                                       short (* pf)(int), short errormode);
  78.  
  79. extern _C int _JPGCLASS _pascal rdpngstreamdib(void * inbuffer, long size,
  80.                                                       int resolution, int dither,
  81.                                                       int password, unsigned int * hdib,
  82.                                                       short (* pf)(int), short errormode);
  83.  
  84. extern _C int _JPGCLASS _pascal wrpngfiledib(const char *filename, int resolution,
  85.                                                  int interlaced, int password,
  86.                                                  unsigned int hdib, short (* pf)(int),
  87.                                                  short errormode);
  88.  
  89. extern _C int _JPGCLASS _pascal wrpngstreamdib(void *inbuffer, long *size,
  90.                                                  int resolution, int interlaced, int password,
  91.                                                  unsigned int hdib, short (* pf)(int),
  92.                                                  short errormode);
  93.  
  94. extern _C int _JPGCLASS _pascal wrgiffiledib(const char *filename, int resolution,
  95.                                                  int password, unsigned int hdib,
  96.                                                  short (* pf)(int), short errormode);
  97.  
  98. extern _C int _JPGCLASS _pascal wrgifstreamdib(void * inbuffer, long * size,
  99.                                           int resolution, int password,
  100.                                           unsigned int hdib,short (* pf)(int),
  101.                                           short errormode);
  102.  
  103. extern _C int _JPGCLASS _pascal wrpcxfiledib(const char * filename, int resolution,
  104.                                                         int password, unsigned int hdib,
  105.                                                         short (* pf)(int), short errormode);
  106.  
  107. extern _C int _JPGCLASS _pascal wrpcxstreamdib(void * inbuffer, long * size,
  108.                                               int resolution, int password,
  109.                                               unsigned int hdib, short (* pf)(int),
  110.                                               short errormode);
  111.  
  112. #endif
  113.