CreateHalftonePalette function
The CreateHalftonePalette function creates a halftone palette for the specified device context (DC).
Syntax
HPALETTE CreateHalftonePalette( __in HDC hdc );
Parameters
- hdc [in]
-
A handle to the device context.
Return value
If the function succeeds, the return value is a handle to a logical halftone palette.
If the function fails, the return value is zero.
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.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
- Colors Overview
- Color Functions
- DeleteObject
- RealizePalette
- SelectPalette
- SetStretchBltMode
- StretchDIBits
- StretchBlt
Send comments about this topic to Microsoft
Build date: 9/7/2011
