CPalette::CreateHalftonePalette
Creates a halftone palette for the device context.
BOOL CreateHalftonePalette(
CDC* pDC
);
Parameters
- pDC
Identifies the device context.
Return Value
Nonzero if the function is successful; otherwise 0.
Remarks
An application should create a halftone palette when the stretching mode of a device context is set to HALFTONE. The logical halftone palette returned by the CreateHalftonePalette member function should then be selected and realized into the device context before the CDC::StretchBlt or StretchDIBits function is called.
See the Windows SDK for more information about CreateHalftonePalette and StretchDIBits.
Requirements
Header: afxwin.h