CPI_Image.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- // Image Support
- //
- typedef struct _CPs_Image
- {
- HBITMAP m_hbmImage;
- SIZE m_szSize;
- } CPs_Image;
- //
- typedef enum _CPe_ImageState
- {
- igsQuiescent = 0,
- igsActive = 1,
- igsFloatActive = 2,
- igsLast = 2
- } CPe_ImageState;
- //
- typedef struct _CPs_Image_WithState
- {
- CPs_Image* m_pImage;
- int m_iStateHeight;
- POINT m_ptSource[igsLast+1];
- } CPs_Image_WithState;
- ////////////////////////////////////////////////////////////////////////////////
- //
- #define CIC_TILEDFILOPTIONS_NONE 0
- #define CIC_TILEDFILOPTIONS_NOCENTRE 1
- //
- CPs_Image* CPIG_CreateImage_FromFile(const char* pcFilename);
- CPs_Image* CPIG_CreateImage_FromSubFile(CP_COMPOSITEFILE hmComposite, const char* pcSubFilename);
- CPs_Image* CPIG_CreateImage_FromResource(const UINT uiResourceID);
- CPs_Image_WithState* CPIG_CreateStateImage(CPs_Image* pSource, const int iNumStates);
- void CPIG_DestroyImage(CPs_Image* pImage);
- void CPIG_DestroyImage_WithState(CPs_Image_WithState* pImage);
- void CPIG_TiledFill(CPs_DrawContext* pDC, const RECT* prTarget, const RECT* prSourceRect, CPs_Image* pSourceImage, const DWORD dwOptions);
- void CPIG_DrawStateImage(CPs_DrawContext* pDC, const int iX, const int iY, CPs_Image_WithState* pSource, const CPe_ImageState enState);
- void CPIG_DrawImage(CPs_DrawContext* pDC, const int iX, const int iY, CPs_Image* pSource);
- //
- ////////////////////////////////////////////////////////////////////////////////