第 8 章 图形处理

Click here to load reader

Upload: colum

Post on 19-Jan-2016

94 views

Category:

Documents


0 download

DESCRIPTION

第 8 章 图形处理. 本章主要介绍以下内容: ( 1 )绘图。 ( 2 )位图。 ( 3 )光标。 ( 4 )图标。 ( 5 )图形设备。. 8.1 绘图. 8.1.1 绘图设置 8.1.2 绘图工具. 8.1.1 绘图设置. 1. 绘图模式 2. 设置绘图模式的程序. 8.1.1 绘图设置. 1. 绘图模式 绘图模式指定如何将画笔颜色和被填充对象的内部颜色与显示设备上的颜色相结合。默认绘图模式为 R2_COPYPEN , Windows 简单地将画笔颜色复制到显示设备上。 - PowerPoint PPT Presentation

TRANSCRIPT

7 Windows——8
8.1.2
1.
Windows——8
8.1.2
1
1
CreatePen()CreatePenIndirect()ExtCreatePen()
2
Windows——8
8.1.2
3CPen
Windows——8
8.1.2
2.
2CreateSolidBrush()
3CreateHatchBrush()
4CreateBrushIndirect()
5CreatePatternBrush()
Windows——8
8.1.2
3
2CBrushViewOnDraw()
00lpMetricsTEXTMETRIC
Windows——8
8.1.2
4
7-4
Windows——8
8.1.2
4.
VC++MFCCRgn
Windows——8
8.1.2
1CRgn
CRgnGDI
2
Windows——8
8.2
DDB
Windows——8
8.2.1
3.
PatBlt()
BOOL PatBlt( int x, int y, int nWidth, int nHeight, DWORD dwRop );
xynWidthnHeightdwRop
Windows——8
8.2.2
2. BitBlt()
BitBlt()
BOOL BitBlt( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, DWORD dwRop );
pSrcDCxSrc ySrcxynWidthnHeightdwRop
Windows——8
8.2.2
3. StretchBlt()
StretchBlt()BitBlt()StretchBlt()
1BOOL StretchBlt( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, int nSrcWidth, int nSrcHeight, DWORD dwRop );

1AppWizardbitmap
Windows——8
8.3
8.3.1
8.3.2
8.3.3
Windows——8
8.3.1