Visual C++ 程序设计

Click here to load reader

download Visual C++ 程序设计

of 32

description

Visual C++ 程序设计. 武汉职业技术学院计算机科学系. 万 彪 2004.12. 第七章 图形设备接口与绘图. 本 章 内 容. 1 、图形设备接口及其基本概念. 2 、 GDI 绘图对象及其管理. 3 、映射模式. 4 、绘制图形. 5 、绘制文本. 7.1 图形设备接口及其基本概念. 7.1.1 图形设备接口概念 7.1.2 设备环境 7.1.3 设备环境类. 7.1.1 图形设备接口. Windows 图形设备接口 (GDI ) 是为与 设备无关 的图形设计的。所谓 设备的 - PowerPoint PPT Presentation

Transcript of Visual C++ 程序设计

VC++Windows

MFCGDIMFCCDCCDCDCCDC


CDCMFCCDC

OnPaint()
CBrush.
CFont:
CPalette

Windows8“”“”“”16VGA“”131

CDC
BOOL LineTo(int x,int y);
BOOL Rectangle(LPCTECT lpRect);
Ellipse()Rectangle()
BOOL Ellipse(LPCTECT lpRect);
WindowsGDI
int nWidth, //0
int nEscapement, //0.1
int nOrienation, //0.1
DWORD Dwltalic, //
DWORD dwUnderline, //
DWORD dwStrikeout, //
LPCTSTR lpstring, //lpstring
int nCount //nCount