Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

XL.Color.UnPack

Unpacks color type to red, green and blue components.

Component Version macOS Windows Linux Server iOS SDK
XL 3.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "XL.Color.UnPack"; bookRef; value; selector )   More

Parameters

Parameter Description Example
bookRef The reference to the workbook. Please use XL.LoadBook to load a file. $ref
value The packed color value. 255
selector The selector on what to return. Can be red, green or blue. "red"

Result

Returns color component value or error.

Description

Unpacks color type to red, green and blue components.

Examples

Extracts color in RGB mode:

$r = MBS( "XL.Color.UnPack"; $$book; 16711680; "red")
$g = MBS( "XL.Color.UnPack"; $$book; 16711680; "green")
$b = MBS( "XL.Color.UnPack"; $$book; 16711680; "blue")

See also

This function checks for a license.

Created 18th August 2014, last changed 18th August 2014


XL.Color.Pack - XL.ConditionalFormat.Font