123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // DIB.h
- #ifndef __DIB_H__
- #define __DIB_H__
- #include "MyImageWork.h"
- #include <complex>
- using namespace std;
- class CDib
- {
- public:
- CDib();
- ~CDib();
- BOOL Draw( CDC *pDC, int nX = -1, int nY = -1, int nWidth = -1, int nHeight = -1, int Style = 1);
- BOOL Save( const char *pszFilename );
- BOOL Load( const char * );
- // bool Valid;
- public:
- int m_BitCount;
- WORD * m_pWordData;
- CPalette m_Palette;
- unsigned char *m_pDib, *m_pDibBits;
- unsigned char *m_pOldDibShow;
- DWORD m_dwDibSize;
- BITMAPINFOHEADER *m_pBIH;
- RGBQUAD *m_pPalette;
- int m_nPaletteEntries;
- public:
- void BackUpDib();
- void Pick();
- void Embed();
- BOOL LoadEmbFile(const char *);
- BOOL DrawContrast(CDC *pDC,int rect_width, int rect_height);
- UINT bitmap_size;
- UINT embfile_size;
- unsigned char *p;//指向宿主图像数据
- int tag; //此tag用以标记打开的图像中是否含有隐藏信息0:无 else:有
- unsigned char *q;//指向隐藏文件数据
- unsigned char *m_pFile;
- void SavePicked( const char *pszFilename );
- };
- #endif
|