HRESULT SetColor ( FLOAT component1, FLOAT component2, FLOAT component3, FLOAT component4 ) |
Color values are interpreted using the current color mapping profile. Values should be in the range [0..1]. If the current color mapping profile uses less than 4 color components, then superfluous color components are ignored. (You can pass 0 for them.)
For conversion from [0..255] RGB color values (denoted by x) to valid parameters, use this formula: x/255 -> [0..1]
Example: RGB (150, 101, 15) -> (0.588, 0.396, 0.059)
See theĀ SetColorSpaceType method for examples.