Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

DynaPDF.RGB

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

Parameters

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

Result

Returns color value as number.

Description

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.

Examples

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.




Links
MBS Xojo blog