CPalette::CreateHalftonePalette
Creates a halftone palette for the device context.
BOOL CreateHalftonePalette(
CDC* pDC
);
Параметры
- pDC
Identifies the device context.
Возвращаемое значение
Nonzero if the function is successful; otherwise 0.
Заметки
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.
Требования
Header: afxwin.h