Name | CNSImage_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 Type | Number |
---|
Format | CNSImage_GetHexColorComponent ( HexColor ; ColorSpace ; Component ) |
---|
Required Parameters | HexColor The Color to extract the Component from.
ColorSpaceThe Color Spaces that contains the Component you want to retrieve.
ComponentThe 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" )
|
---|