API Reference > imodeljs-common > Symbology > ColorDef > rgb2bgr rgb2bgr MethodStatic Swap the red and blue values of a 32-bit integer representing a color. Transparency and green are unchanged. rgb2bgr(val: number): number Parameter Type Description val number Returns - number Defined in core/common/src/ColorDef.ts Line 261 Last Updated: 13 June, 2024