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

DynaPDF.Lab

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

Parameters

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

Result

Returns number or error.

Description

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.

Examples

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