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


Calculates color value for LAB.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 11.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.Lab"; L; a; b )   More


Parameter Description Example
L The l color component from 0 to 100. 50
a The a color component from -128 to 127. -34
b The a color component from -128 to 127. 77


Returns number or error.


Calculates color value for LAB.
For use with functions which take a color as a big number.
Calculation is b * 65536 + a * 256 + L.
Use it only if the color space is LAB.

See also DynaPDF.RGB for RGB colors and DynaPDF.CMYK for CMYK colors.


Get Lab color value:

MBS( "DynaPDF.Lab"; 50; -34; 77 )

Example result: 5103154

See also

Release notes

Blog Entries

This function is free to use.

Created 15th January 2021, last changed 15th January 2021

DynaPDF.IsInitialized - DynaPDF.LineAnnot