CPI_Image.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- // 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);
- //
- ////////////////////////////////////////////////////////////////////////////////