Name
GetLayerPen -- get pen color from layer's palette (V9.0)
Synopsis
color = GetLayerPen(id, pen)
Function
This function gets the color of the pen specified by pen from the palette of the layer specified by id. The color will be returned as an RGB color.

You need to enable layers before you can use this function. See Layers introduction for details.

Inputs
id
identifier of layer to use
pen
pen you want to get (starting from 0)
Results
color
color of the pen, specified as an RGB color
Example
color = GetLayerPen(1, 0)
The code gets the color of the first pen of layer 1.

Show TOC