GetColorInfo

(Engine-Level Function)

Description: Returns the brush and pen information for a given graphic statement.
Returns: Numeric
Usage: Script Only.
Function Groups: Graphics,  Color
Related to: Brush | Pen
Format: GetColorInfo(Code, PenBrushNum, Attribute)
Parameters:  
Code
Required. Any statement that gives the code pointer of the object whose color information is desired.
PenBrushNum
Required. Any numeric expression which gives the number of the pen or brush which the color information is desired for. The first pen or brush is numbered 1.
Attribute
Required. Any numeric expression which gives the desired color attribute.

Attribute

Color Attribute

0

Type of the PenBrushNum supplied. Return value is 19 (brush) or 20 (pen)

1

The foreground color of the brush or pen specified

2

For a brush, the background color, for a pen, the width

3

For a brush, the pattern number, for a pen, the style

Comments: The return value of this function is determined by Attribute.