Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Palette operations
[GDI functions]

Functions


Function Documentation

HPALETTE GUIAPI CreatePalette GAL_Palette pal  ) 
 

Creates a logical palette.

This function creates a logical palette from a palette entry pal.

Parameters:
pal The Pointer to a GAL_Palette structure that contains information about the colors in the logical palette..
Returns:
Handle to the logical palette on success, otherwise 0.
See also:
GetPalette

MG_EXPORT HPALETTE GUIAPI GetDefaultPalette void   ) 
 

Gets the system default logical palette.

Returns:
Handle to the system default logical palette on success, otherwise 0.
See also:
GetPalette

int GUIAPI GetPalette HDC  hdc,
int  start,
int  len,
GAL_Color cmap
 

Gets palette entries of a DC.

This function gets some palette entries of the DC hdc.

Parameters:
hdc The device context.
start The start entry of palette to be retrived.
len The length of entries to be retrived.
cmap The buffer receives the palette entries.
Returns:
The number of entries retrieved from the logical palette.
See also:
SetPalette

int GUIAPI GetPaletteEntries HPALETTE  hpal,
int  start,
int  len,
GAL_Color cmap
 

Gets palette entries of a logical palette.

This function gets some palette entries of the logical palette hpal.

Parameters:
hpal The logical palette.
start The start entry of palette to be retrived.
len The length of entries to be retrived.
cmap The buffer receives the palette entries.
Returns:
The number of entries retrieved from the logical palette.
See also:
GetPalette

BOOL GUIAPI SetColorfulPalette HDC  hdc  ) 
 

Sets a DC with colorfule palette.

This function sets the DC specified by hdc with colorful palette.

Parameters:
hdc The device context.
Returns:
TRUE on success, otherwise FALSE.
See also:
SetPalette

BOOL GUIAPI SetPalette HDC  hdc,
int  start,
int  len,
GAL_Color cmap
 

Sets palette entries of a DC.

This function sets some palette entries of the DC hdc.

Parameters:
hdc The device context.
start The start entry of palette to be set.
len The length of entries to be set.
cmap Pointer to the palette entries.
Returns:
TRUE on success, otherwise FALSE.
See also:
GetPalette


Generated on Mon Jun 26 13:54:29 2006 for MiniGUI V1.6.9 API Reference by  doxygen 1.4.2