A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



CreatePalette

The CreatePalette function creates a logical color palette.

VB4-32,5,6
Declare Function CreatePalette Lib "gdi32" Alias "CreatePalette" (lpLogPalette As LOGPALETTE) As Long

VB.NET
System.Drawing.Imaging.ColorPalette

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
- lplgpl
Points to a LOGPALETTE structure that contains information about the colors in the logical palette.

Return Values
If the function succeeds, the return value is a handle that identifies a logical palette.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

Last update: 07 April 2006