Product Logo

CNS Image

Import, edit, and export Images in the FileMaker environment

Functions

CNSImage_SetHexColorComponent

NameCNSImage_SetHexColorComponent
Description

This function updates the HexColor parameter you specify by adjusting the Value of the Component of the Color Space you specify. For example, you could set the Hue of the HSL Color Space of your HexColor.

Return TypeText (HexColor)
FormatCNSImage_SetHexColorComponent ( HexColor ; ColorSpace ; Component ; Value )
Required Parameters
HexColor

The Color you need to modify.

ColorSpace

The Color Space that contains the Component you want to modify. (For Example, the “HSL” Color Space.)

Component

The Component to modify. (For Example, the “Hue” Component.)

Value

The new Value for the Component.

Examples
Example 1

Returns "D4007F".

CNSImage_SetHexColorComponent( "D40000" ; "RGB" ; "Blue" ; 127 )
Example 2

Returrns "69D400".

CNSImage_SetHexColorComponent( "D40000" ; "HSL" ; "Hue" ; 90 )