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

📄 jpegeqview.h

📁 可以选择各种压缩方式对读入的图像进行压缩和解压
💻 H
字号:
// JPEGEQView.h : interface of the CJPEGEQView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_JPEGEQVIEW_H__987262E3_C5F7_4BA6_A502_B9B5ED740AE4__INCLUDED_)
#define AFX_JPEGEQVIEW_H__987262E3_C5F7_4BA6_A502_B9B5ED740AE4__INCLUDED_

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


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

// Attributes
public:
	CJPEGEQDoc* GetDocument();

// Operations
public:
    CString bmpsrcfile;
	unsigned bmpwidth,bmpheight;

	virtual void WritePixel(int x, int y, int c);
	virtual void ShowMsg(int mode, clock_t t1, clock_t t2, long double pnsr, double cr);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CJPEGEQView)
	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:
	virtual ~CJPEGEQView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CJPEGEQView)
	afx_msg void OnDisplaybmp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnCompress();
public:
	afx_msg void OnDecomp();
public:
	afx_msg void OnTest();
};

#ifndef _DEBUG  // debug version in JPEGEQView.cpp
inline CJPEGEQDoc* CJPEGEQView::GetDocument()
   { return (CJPEGEQDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_JPEGEQVIEW_H__987262E3_C5F7_4BA6_A502_B9B5ED740AE4__INCLUDED_)

⌨️ 快捷键说明

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