GetLayerRGBColor

All Editions image\bltlrgss.gif Related Transactions image\bltlrgss.gif Example

The GetLayerRGBColor transaction returns the color of the specified layer or CAD layer, expressed as an RGB value.

Type XTYP_REQUEST

Syntax [GetLayerRGBColor(docwinID, layerID, <pageID>)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

identifier of the layer or CAD layer to query

pageID

DWORD

0 | pageID

current | specific. Optional parameter.

Reply

Data type

Values

Meaning

red

WORD

1 to 255

red color component

green

WORD

1 to 255

green color component

blue

WORD

1 to 255

blue color component

Sample color options

Remarks

If the layer is default color, a value of -161 is returned.

image\tips.gif Parameter tip

Release information

Added in Release 4.31.

See also

Changing image colors