1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| #ifndef _MV_IMAGE_H
| #define _MV_IMAGE_H
|
| #ifdef MVGIGE_EXPORTS
| #define MVGIGE_API __declspec(dllexport)
| #else
| #define MVGIGE_API __declspec(dllimport)
| #endif
|
| class MVGIGE_API MVImage
| {
| public:
| MVImage();
| ~MVImage();
|
| int Create( int nWidth, int nHeight, int nBPP );
| BOOL IsNull();
| int GetWidth();
| int GetHeight();
| void* GetBits();
| int GetPitch();
| int GetBPP();
| HBITMAP GetHBitmap();
| BOOL Draw( HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight );
| BOOL Draw( HDC hDestDC, int xDest, int yDest, int nDestWidth, int nDestHeight );
| BOOL Draw( HDC hDestDC, int xDest, int yDest );
| int Save(LPCTSTR pszFileName);
| void *GetCImageHandle();
| void Destroy();
| HDC GetDC();
| void ReleaseDC();
| protected:
| private:
| HANDLE m_hImage;
| };
|
| #endif
|
|