南昌大学计算机图形学实验报告(12)

2021-04-05 22:28

南昌大学实验报告

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)


南昌大学计算机图形学实验报告(12).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:2015年10月全国自考电子商务英语预测试题和答案

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: