PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method sets both stroke and fill colors to the specified color values.
|
| HRESULT SetColor ( FLOAT component1, FLOAT component2, FLOAT component3, FLOAT component4 ) |
Parameters
component1
Value for 1st color component
component2
Value for 2nd color component
component3
Value for 3rd color component
component4
Value for 4th color component
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
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.
See Also
Reference


