Programming with Reflection

image\rwnprg32.gif GetAnsiColorRGB method

 

Syntax ComponentValue = object.GetAnsiColorRGB(Color, WhichValue)

 

Description

Returns values used for display colors when your terminal is set for ANSI emulation, that is when TerminalType is set to either rcANSIBBS or rcANSIUNIX. Each color is defined using different values for three basic color components—red, green, and blue. This method returns the current value for a specific component of a particular color. For example, the following expression returns the current value of the blue component for cyan:

Session.GetAnsiColorRGB(rcAnsiCyan, rcBlue)

Use SetAnsiColorRGB to change the current color configuration for any color in the palette.

Arguments

Color Argument type: Enumeration
Required
Identifies one of the palette colors. Only the first eight colors are available for ANSI-BBS terminal emulation (TerminalType = rcANSIBBS). All 16 colors are available for SCO-ANSI terminal emulation (TerminalType = rcANSIUNIX).

 

rcAnsiBlack

rcAnsiBlue

rcAnsiGreen

rcAnsiCyan

rcAnsiRed

rcAnsiMagenta

rcAnsiBrown

rcAnsiWhite

rcAnsiGrey (SCO-ANSI)

rcAnsiLtBlue (SCO-ANSI)

rcAnsiLtGreen (SCO-ANSI)

rcAnsiLtCyan (SCO-ANSI)

rcAnsiLtRed (SCO-ANSI)

rcAnsiLtMagenta (SCO-ANSI)

rcAnsiYellow (SCO-ANSI)

rcAnsiLtWhite (SCO-ANSI)

WhichValue Argument type: Enumeration
Required
One of the three color components. The possible values are:

 rcRed
rcGreen
rcBlue

Return

ComponentValue Return type: Integer
The value for the specified component. This can be any value between 0 and 255 in Reflection for UNIX and OpenVMS. It can be any value between 0 and 100 in Reflection for ReGIS Graphics.

 

Note: This method is not available in Reflection for HP.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command