Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  


Calculates color value for RGB.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 4.0 Yes Yes Yes Yes Yes
MBS( "DynaPDF.RGB"; Red; Green; Blue )   More


Parameter Description Example value
Red The red color component from 0 to 255. 0
Green The green color component from 0 to 255. 255
Blue The blue color component from 0 to 255. 255


Returns color value as number.


Calculates color value for RGB.
For use with functions which take a color as a big number.
Calculation is Blue * 65536 + Green * 256 + Red.
Use it only if the color space is RGB.


Get a blue color value:

MBS( "DynaPDF.RGB"; 0; 0; 255 )

Example result: 16711680

Get a red color value:

MBS( "DynaPDF.RGB"; 255 )

Example result: 255

See also

Example Databases

Blog Entries

Created 18th August 2014, last changed 11st December 2016

DynaPDF.Print.SetDevNames   -   DynaPDF.ReadImageFormat

Feedback: Report problem or ask question.

MBS Xojo Plugins