|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| gdi32.lib
| Header File
| wingdi.h
| Unicode
| No
| Platform Notes
| None
|
|
|
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
DeleteObject, RealizePalette, SelectPalette, SetStretchBltMode, StretchDIBits, StretchBlt
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Programmer's Reference (win32.hlp)
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|