CDC::GetHalftoneBrush

This member function retrieves a halftone brush. A halftone brush is a brush that shows foreground pixels alternately with background pixels to create a dithered pattern.

Syntax

static CBrush* PASCAL GetHalftoneBrush ( CDC* pDC );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Parameters

pDC
A pointer to a device context.

Remarks

In Windows CE, this member function requires a pointer to a device context as an argument. (The CDC::GetHalftoneBrush in standard MFC does not take any arguments.) You have to call the CDC::GetHalftoneBrush member function separately for each device context you use. Also, if the foreground or background colors of the device context change, call CDC::GetHalftoneBrush again, because a previously created halftone brush may no longer be displayed properly.

See Also

CDC Overview, CDC Member Functions, Graphical Drawing Classes, CBrush