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