home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / Emulation_Include_Files / imgdecmp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  2.2 KB  |  74 lines

  1. /*---------------------------------------------------------------------------*\
  2.  *
  3.  * (c) Copyright Microsoft Corp. 1997 All Rights Reserved
  4.  *
  5.  *  module: imgdecmp.h
  6.  *  date:
  7.  *  author: scottsh
  8.  *
  9.  *  purpose: 
  10.  *
  11. \*---------------------------------------------------------------------------*/
  12. #ifndef __IMGDECMP_H__
  13. #define __IMGDECMP_H__
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif // __cplusplus
  18.  
  19. #include "imgrendr.h"
  20.  
  21. typedef void (CALLBACK *PROGRESSFUNC)(IImageRender *pRender, BOOL bComplete, LPARAM lParam);
  22. typedef DWORD (CALLBACK *GETDATAFUNC)(LPSTR szBuffer, DWORD dwBufferMax, LPARAM lParam);
  23.  
  24. typedef struct tagDecompressImageInfo {
  25.     DWORD            dwSize;                    // Size of this structure
  26.     LPBYTE            pbBuffer;                // Pointer to the buffer to use for data
  27.     DWORD            dwBufferMax;            // Size of the buffer
  28.     DWORD            dwBufferCurrent;        // The amount of data which is current in the buffer
  29.     HBITMAP    *        phBM;                    // Pointer to the bitmap returned (can be NULL)
  30.     IImageRender **    ppImageRender;            // Pointer to an IImageRender object (can be NULL)
  31.     int                iBitDepth;                // Bit depth of the output image
  32.     LPARAM            lParam;                    // User parameter for callback functions
  33.     HDC                hdc;                    // HDC to use for retrieving palettes
  34.     int                iScale;                    // Scale factor (1 - 100)
  35.     int                iMaxWidth;                // Maximum width of the output image
  36.     int                iMaxHeight;                // Maxumum height of the output image
  37.     GETDATAFUNC        pfnGetData;                // Callback function to get more data
  38.     PROGRESSFUNC    pfnImageProgress;        // Callback function to notify caller of progress decoding the image
  39.     COLORREF        crTransparentOverride;    // If this color is not (UINT)-1, it will override the
  40.                                             // transparent color in the image with this color. (GIF ONLY)
  41. } DecompressImageInfo;
  42.  
  43. #define IMGDECOMP_E_NOIMAGE        0x800b0100
  44.  
  45. COLORREF *
  46. #ifdef _WIN32_WCE_EMULATION
  47. WINAPI
  48. #endif
  49. GetHalftonePalette();
  50.  
  51. COLORREF *
  52. #ifdef _WIN32_WCE_EMULATION
  53. WINAPI
  54. #endif
  55. Get332Palette();
  56.  
  57. HRESULT
  58. #ifdef _WIN32_WCE_EMULATION
  59. WINAPI
  60. #endif
  61. DecompressImageIndirect(DecompressImageInfo *pParams);
  62.  
  63. COLORREF
  64. #ifdef _WIN32_WCE_EMULATION
  65. WINAPI
  66. #endif
  67. GetTransparentColor();
  68.  
  69. #ifdef __cplusplus
  70. };
  71. #endif // __cplusplus
  72.  
  73. #endif // !__IMGDECMP_H__
  74.