CreateHalftonePalette
The CreateHalftonePalette
function creates a halftone palette for the specified device context.
HPALETTE CreateHalftonePalette(
HDC hdc |
// handle to device
context |
); |
|
Parameters
hdc
Identifies
the device context.
Return Values
If the
function succeeds, the return value identifies a logical halftone palette.
If the
function fails, the return value is zero. To get extended error information,
call GetLastError
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 CreateHalftonePalette
should then be selected and realized into the device context before the StretchBlt
or StretchDIBits function is called.
When you no
longer need the palette, call the DeleteObject function to delete it.
See Also