.. highlightlang:: us .. index:: OBJGetSolidColor .. _objgetsolidcolor: OBJGetSolidColor ================ .. us.tag OBJGetSolidColor ENGLISH draw-get Changed5900 :ref:`OBJGetSolidColor` sets the solid color to fill a drawing object or diagram. .. function:: rvRGB = OBJGetSolidColor(hobj) rvARGB = OBJGetSolidColor(hobj, bTransparency) .. us.return **Return Value** *rvRGB* is a vector with 3 elements: .. list-table:: :header-rows: 1 * - Value - Meaning * - rvColorRGB[1] - Red (0 to 255) * - rvColorRGB[2] - Green (0 to 255) * - rvColorRGB[3] - Blue (0 to 255) If *bTransparency* is TRUE (1), *rvARGB* is a vector with 4 elements: .. list-table:: :header-rows: 1 * - 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 to255) * - rvARGB[4] - Blue (0 to 255) .. us.params **Parameters** .. uparam:: hobj *hobj* identifies a line, text, rectangle, ellipse or layer (diagram) object. .. us.history **History** .. list-table:: :header-rows: 1 * - Version - Description * - R2017 - New parameter *bTransparency*. .. seealso:: :ref:`overview-drawing-objects`, :ref:`OBJSetSolidColor`, :ref:`OBJSetBkMode`, :ref:`OBJSetFillMode` :sub:`id-1564213`