南昌大学实验报告
CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, ON_COMMAND(ID_FILE_PRINT_PREVIEW, CView::OnFilePrint) CView::OnFilePrintPreview) END_MESSAGE_MAP()
///////////////////////////////////////////////////////////////////////////// // CDeboorView construction/destruction
CDeboorView::CDeboorView() { }
CDeboorView::~CDeboorView() { } BOOL
CDeboorView::PreCreateWindow(CREATESTRUCT& cs) { }
///////////////////////////////////////////////////////////////////////////// // CDeboorView drawing
void CDeboorView::OnDraw(CDC* pDC) {
CDeboorDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc);
// TODO: add draw code for native data return CView::PreCreateWindow(cs); // TODO: Modify the Window class or // the CREATESTRUCT cs styles here by modifying
// TODO: add construction code here
学生姓名:涂汉江学号:6100410181专业班级:数字媒体101班
实验类型:□验证□综合■设计□创新 实验日期:2012-12-16
实验5 deboor曲线的绘制 1.实验目的
掌握绘制deboor曲线
2.实验内容
绘制贝塞尔曲线
3.实验环境
1.个人计算机
2.Windows7操作系统 3.VS2010
4.实验步骤
// deboorView.cpp : implementation of the CDeboorView class //
#include "stdafx.h" #include "deboor.h" #include "deboorDoc.h" #include "deboorView.h" #ifdef _DEBUG
#define new DEBUG_NEW #undef THIS_FILE
static char THIS_FILE[] = __FILE__; #endif
///////////////////////////////////////////////////////////////////////////// // CDeboorView
IMPLEMENT_DYNCREATE(CDeboorView, CView)
BEGIN_MESSAGE_MAP(CDeboorView, CView)
//{{AFX_MSG_MAP(CDeboorView)
// NOTE - the ClassWizard will add // DO NOT EDIT what you see in
and remove mapping macros here. these blocks of generated code!
//}}AFX_MSG_MAP
// Standard printing commands ON_COMMAND(ID_FILE_PRINT,
here
//五个控制顶点四条边 /*
for(int i=0;i<=200;i++) {
pDC->SetPixelV(i+100,100,RGB(0,255,0)
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库南昌大学计算机图形学实验报告(12)在线全文阅读。
相关推荐: