⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fractalview.h

📁 这是分行用于图像压缩的经典的程序,在正常的情况下可达到7:1左右的压缩比.
💻 H
字号:
// fractalView.h : interface of the CFractalView class
//
/////////////////////////////////////////////////////////////////////////////
#include "Code.h"
#if !defined(AFX_FRACTALVIEW_H__6A965EC2_4FCF_43F8_98B7_722788279CD0__INCLUDED_)
#define AFX_FRACTALVIEW_H__6A965EC2_4FCF_43F8_98B7_722788279CD0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CFractalView : public CView
{
protected: // create from serialization only
	CFractalView();
	DECLARE_DYNCREATE(CFractalView)

// Attributes
public:
	CFractalDoc* GetDocument();

// Operations
public:
	CString filename;


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFractalView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void copy_rectangle(Rect *src_rect,short src_x,short  src_y,Rect *dest_rect ,short dest_x,short dest_y,short  width,short height);
	void flip(Rect *range_block,Rect *flip_range_block,Symmetry symmetry);
	long two_distance(Rect *rect1,Rect *rect2);
	void intensity(Rect *rectangle,float *shift);
	float mean(Rect *rectangle);
	void reduce_image(Rect *src_dest,Rect *dest_rect);
	virtual ~CFractalView();
	int draw;


#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CFractalView)
	afx_msg void OnEncode();
	afx_msg void OnDecode();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in fractalView.cpp
inline CFractalDoc* CFractalView::GetDocument()
   { return (CFractalDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FRACTALVIEW_H__6A965EC2_4FCF_43F8_98B7_722788279CD0__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -