Description: This function returns the brush and pen information for a given graphic statement.
Returns: Numeric
Usage: Script
Format: GetColorInfo(Code, PenBrushNum, Attribute)
Parameters: Code { code pointer } { required } { no default }
Any statement which gives a code pointer whose color information is desired.
PenBrushNum { numeric } { required } { no default }
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 { numeric } { required } { no default }
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.
See Also: