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. |
Remarks
To set the layer back to the default color, set the red parameter to 256.
Release information
Added in Release 4.31.
See also