OBJSetSolidColorΒΆ
OBJSetSolidColor sets the solid RGB color to fill a drawing object or diagram.
-
bool = OBJSetSolidColor(hobj, rvRGB)
-
bool = OBJSetSolidColor(hobj, rvARGB)
Return Value
bool is TRUE (1) when the function was successful and FALSE (0) if it was not.
Parameters
-
hobj
hobj identifies a line, text, rectangle, ellipse or layer (diagram) object.
-
rvRGB
rvRGB is a vector with 3 elements:
Value Meaning rvRGB[1] Red (0 to 255) rvRGB[2] Green (0 to 255) rvRGB[3] Blue (0 to 255)
-
rvARGB
rvARGB is a vector with 4 elements:
Value Meaning rvARGB[1] Transparency value (alpha) between 0 and 255. 0 is transparent and 255 is opaque. rvARGB[2] Red (0 to 255) rvARGB[3] Green (0 to 255) rvARGB[4] Blue (0 to 255)
History
Version | Description |
---|---|
R2017 | Transparency: rvARGB |
See also
id-253493