Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.0   12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3    Statistic    FMM    Blog  

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 does not need a paid license.

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


DynaPDF.IsInitialized - DynaPDF.LineAnnot

💬 Ask a question or report a problem


Start Chat