📄 dib.h
字号:
#if !defined(AFX_DIB_H__4F9C186E_952D_450A_9B43_921C94739375__INCLUDED_)
#define AFX_DIB_H__4F9C186E_952D_450A_9B43_921C94739375__INCLUDED_
#ifndef __DIB_H__
#define __DIB_H__
#include "图像水印.h"
#include <complex>
using namespace std;
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Dib.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDib view
class CDib : public CView
{
/*protected:
CDib(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CDib)
*/
// Attributes
public:
CDib();
~CDib();
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;
// Operations
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 );
void CDib::Dump(CDumpContext& dc) const;
void CDib::OnDraw(CDC* pDC);
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 * );
#ifdef _DEBUG
virtual void AssertValid() const;
// virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CDib)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIB_H__4F9C186E_952D_450A_9B43_921C94739375__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -