📄 seqprocessdlgdraw.cpp
字号:
// SeqProcessDlgDraw.cpp : implementation file
//
#include "stdafx.h"
#include "SeqProcess.h"
#include "SeqProcessDlg.h"
#include "FnMath.h"
#include "Matrix.h"
#include "FnMatrix.h"
#include "FnImage.h"
#include "FnBitmap.h"
#include "DlgDraw.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// Create a math functions object
static FnMath fMath;
////////////////////////////////////////////////////////////////////////////////
void CSeqProcessDlg::InitializeDraw()
{
}
//-----------------------------------------
void CSeqProcessDlg::DrawCurrentImage()
//-----------------------------------------
{
bitmapDraw.Attach(dibSeq[currentFrame].m_hBitmap);
dcMemDraw.SelectObject( &bitmapDraw);
bitmapDraw.Detach();
m_width = dibSeq[currentFrame].m_lpBMIH->biWidth;
m_height = dibSeq[currentFrame].m_lpBMIH->biHeight;
DrawdcMem2dc(); // Draw the current frame on screen
// draws motion vectors on current frame
}
////////////////////////////////////////////////////////////////////////////////
void CSeqProcessDlg::DrawdcMem2dc()
{
CClientDC dc(this);
dc.StretchBlt( xPosWindow, yPosWindow, scale*m_width, scale*m_height,
&dcMemDraw, 0, 0, m_width, m_height, SRCCOPY);
}
////////////////////////////////////////////////////////////////////////////////
void CSeqProcessDlg::DrawMatrix(matrix& image, int xPos, int yPos, int ScaleFac, CString text)
{
CDlgDraw *pDlg = new CDlgDraw;
pDlg->m_windowText = text;
pDlg->m_Image = image;
pDlg->m_scale = ScaleFac;
pDlg->m_posX = xPos;
pDlg->m_posY = yPos;
pDlg->Create( IDD_DRAW_DIALOG);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -