Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
CPI_Image.h
Package: Visual C++视频音频开发实用工程案例精选.rar [view]
Upload User: tuheem
Upload Date: 2007-05-01
Package Size: 21889k
Code Size: 1k
Category:
Multimedia Develop
Development Platform:
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);
- //
- ////////////////////////////////////////////////////////////////////////////////