第6讲 Visual C++图形程序设计课件.pptVIP

  • 3
  • 0
  • 约9.69千字
  • 约 47页
  • 2017-08-24 发布于广东
  • 举报
第八章 Visual C++图形程序设计 一、基础知识 二、绘图工具 CGdiObject类及子类 三、绘图操作 CDC类及子类 一、基础知识 画家与程序员 图形设备接口(GDI)和设备环境(DC) 图形刷新 映射模式(MM) 颜色 1.1. 画家与程序员 画家---程序员 画布---窗口客户区 画家使用的工具---画笔、画刷、调色板等 图形示例: Bring notebook, textbook, planner, and appropriate writing tools to class. Know due dates, and submit all coursework on time. All assignments are posted on the bulletin board and on the class Web site. 二、Visual C++ 绘图工具 CGdiObject类及子类 2.1. 画笔---计算机中一条线有哪些属性? 线的坐标 线型 线宽 线的颜色 CPen类的操作步骤 (1)声明CPen对象。 (2)初始化画笔。 通过调用CreatePen成员函数可以初始化笔,该函数的原型为:BOOL Create

文档评论(0)

1亿VIP精品文档

相关文档