SetLayerRGBColor

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

The SetLayerRGBColor transaction sets the RGB color of the specified layer (which cannot be a color raster) or CAD layer.

Type XTYP_EXECUTE

Syntax [SetLayerRGBColor(docwinID, layerID, red, green, blue, <pageID>)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

layerID

DWORD

identifier of the layer or CAD layer to change

red

WORD

0 to 256

red color component

green

WORD

0 to 255

green color component

blue

WORD

0 to 255

blue color component

pageID

DWORD

0 | pageID

current | specific. Optional parameter.

Sample color options

Remarks

To set the layer back to the default color, set the red parameter to 256.

image\tips.gif Parameter tip

Release information

Added in Release 4.31.

See also

Changing image colors