📄 edge_detectiondoc.cpp
字号:
// Edge_detectionDoc.cpp : implementation of the CEdge_detectionDoc class
//
#include "stdafx.h"
#include "Edge_detection.h"
#include "Edge_detectionDoc.h"
#include "texture.h"
#include "Tga.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEdge_detectionDoc
IMPLEMENT_DYNCREATE(CEdge_detectionDoc, CDocument)
BEGIN_MESSAGE_MAP(CEdge_detectionDoc, CDocument)
//{{AFX_MSG_MAP(CEdge_detectionDoc)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CEdge_detectionDoc construction/destruction
CEdge_detectionDoc::CEdge_detectionDoc()
{
// TODO: add one-time construction code here
InitDocVariable();
}
CEdge_detectionDoc::~CEdge_detectionDoc()
{
FreeDocVariable();
}
BOOL CEdge_detectionDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
//if( !m_pDib ) m_pDib = new CDIB;
//m_pDib->CreateDIB(256,256,8);
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CEdge_detectionDoc serialization
void CEdge_detectionDoc::Serialize(CArchive& ar)
{
m_pDibInit->Serialize(ar);
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
int CEdge_detectionDoc::InitDocVariable()
{
m_pDibInit = new CDib;
//m_pDibTest = new CDib;
//m_nColorIndex = 0;
//--------------------------------------------
return 0;
}
int CEdge_detectionDoc::FreeDocVariable()
{
delete m_pDibInit;
m_pDibInit = NULL;
return 0;
}
/////////////////////////////////////////////////////////////////////////////
// CEdge_detectionDoc diagnostics
#ifdef _DEBUG
void CEdge_detectionDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CEdge_detectionDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CEdge_detectionDoc commands
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -