MGL_setFontAntiAliasPalette

Sets the font anti-aliasing palette for color index modes.

Declaration

void MGLAPI MGL_setFontAntiAliasPalette(
color_t colorfg,
color_t color75,
color_t color50,
color_t color25,
color_t colorbg)

Prototype In

mgraph.h

Parameters

colorfg | Color used to represent 100% of foreground
color75 | Color used to represent 75% blend of foreground 25% background.
color50 | Color used to represent 50% blend of foreground 50% background.
color25 | Color used to represent 25% blend of foreground 75% background.
colorbg | Color used to represent 100% of background.

Description

This function sets the values of the anti-aliasing palette used to draw anti-aliased fonts when in non-blended mode in color index display modes. Anti-aliased fonts are rendered using a 5 level scheme, and the five colors passed in to this function set up the palette entries to be used for color index modes. It is up to the application program to ensure that the palette is set up correctly with the appropriate colors.

In RGB display modes, the colors are automatically computed from the foreground and background colors, so this function should not be called.

See Also

MGL_setFontBlendMode, MGL_getFontAntiAliasPalette

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com