Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_GetHexColorComponent

NameCNSImage_GetHexColorComponent
Description

This function will return the value of a specific Component (eg. the Green component or the Luminance component) of the specified HexColor from the specified Color Space.

Return TypeNumber
FormatCNSImage_GetHexColorComponent ( HexColor ; ColorSpace ; Component )
Required Parameters
HexColor

The Color to extract the Component from.

ColorSpace

The Color Spaces that contains the Component you want to retrieve.

Component

The Component to retrieve. (For Example, the “Green” Component.)

Examples
Example 1

Returns 204

CNSImage_GetHexColorComponent( "12CC34" ; "RGB" ; "Green" )
Example 2

Returns 44

CNSImage_GetHexColorComponent( "12CC34" ; "HSL" ; "Luminance" )