PALETTEINDEX |
Top Previous Next |
Syntax UINT = PALETTEINDEX(index as INT) Description Used to allow GDI drawing functions to use the palette of an 8 bit screen. Parameters index - Palette index to retrieve color from. Return value A special palette constant and color. Remarks Emergence BASIC primitive drawing commands such as CIRCLE and ELLIPSE expect an RGB color to be specified. In order to properly use these commands with a DirectX 8 bit screen a special color constant must be specified. If an RGB color is passed directly to the primitive drawing commands a best guess match from the palette will be used. Note that this command is not necessary for any of the 2D drawing commands. Example usage CIRCLE BackBuffer,110,125,50,PALETTEINDEX(3),PALETTEINDEX(4) |